Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1875)

Unified Diff: webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/test_evalscores.py

Issue 2715943002: APM Quality Assessment, simulation controller and libraries (Closed)
Patch Set: revert to Python 2 Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/test_evalscores.py
diff --git a/webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment-export.py b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/test_evalscores.py
similarity index 53%
copy from webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment-export.py
copy to webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/test_evalscores.py
index 1b526c1b054918518b39370902d82a1fd53aff29..7ac7dd361511fb68d2504b31a9ea3d621d4778b6 100644
--- a/webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment-export.py
+++ b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/test_evalscores.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
@@ -6,3 +5,15 @@
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
+
+import unittest
+
+from . import eval_scores
+
+class TestEvalScores(unittest.TestCase):
+
+ def test_registered_classes(self):
+ # Check that there is at least one registered evaluation score worker.
+ classes = eval_scores.EvaluationScore.REGISTERED_CLASSES
+ self.assertIsInstance(classes, dict)
+ self.assertGreater(len(classes), 0)

Powered by Google App Engine
This is Rietveld 408576698