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

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

Issue 2811953002: APM QA unit tests, fake POLQA binary and minor fixes (Closed)
Patch Set: comments addressed Created 3 years, 8 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/eval_scores_factory.py
diff --git a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores_factory.py b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores_factory.py
index 00e05377b6a9b74dda8d35c626fe7422ae8e5513..4ce6458cf158b2c2e508b3ff390120a0ce1aa1bc 100644
--- a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores_factory.py
+++ b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores_factory.py
@@ -21,8 +21,8 @@ class EvaluationScoreWorkerFactory(object):
workers.
"""
- def __init__(self, polqa_tool_path):
- self._polqa_tool_path = polqa_tool_path
+ def __init__(self, polqa_tool_bin_path):
+ self._polqa_tool_bin_path = polqa_tool_bin_path
def GetInstance(self, evaluation_score_class):
"""Creates an EvaluationScore instance given a class object.
@@ -33,7 +33,7 @@ class EvaluationScoreWorkerFactory(object):
logging.debug(
'factory producing a %s evaluation score', evaluation_score_class)
if evaluation_score_class == eval_scores.PolqaScore:
- return eval_scores.PolqaScore(self._polqa_tool_path)
+ return eval_scores.PolqaScore(self._polqa_tool_bin_path)
else:
# By default, no arguments in the constructor.
return evaluation_score_class()

Powered by Google App Engine
This is Rietveld 408576698