Chromium Code Reviews| Index: webrtc/modules/audio_processing/test/audioproc_float.cc |
| diff --git a/webrtc/modules/audio_processing/test/audioproc_float.cc b/webrtc/modules/audio_processing/test/audioproc_float.cc |
| index a91480d2655233e4ed0c3f239ea5e9eff52c7280..9e94d50ea1230c7e389591ae0edbf70706173571 100644 |
| --- a/webrtc/modules/audio_processing/test/audioproc_float.cc |
| +++ b/webrtc/modules/audio_processing/test/audioproc_float.cc |
| @@ -165,6 +165,7 @@ DEFINE_bool(discard_settings_in_aecdump, |
| DEFINE_bool(store_intermediate_output, |
| false, |
| "Creates new output files after each init"); |
| +DEFINE_string(custom_call_order_file, "", "Custom process API call order file"); |
| void SetSettingIfSpecified(const std::string value, |
| rtc::Optional<std::string>* parameter) { |
| @@ -260,6 +261,8 @@ SimulationSettings CreateSettings() { |
| settings.discard_all_settings_in_aecdump = FLAGS_discard_settings_in_aecdump; |
| settings.fixed_interface = FLAGS_fixed_interface; |
| settings.store_intermediate_output = FLAGS_store_intermediate_output; |
| + SetSettingIfSpecified(FLAGS_custom_call_order_file, |
|
aleloi
2016/12/09 10:25:44
Suggestion: move up to 258.
peah-webrtc
2016/12/09 10:49:59
Done.
|
| + &settings.custom_call_order_filename); |
| return settings; |
| } |
| @@ -361,6 +364,11 @@ void PerformBasicParameterSanityChecks(const SimulationSettings& settings) { |
| "Error: --bitexactness_report can only be used when operating on an " |
| "aecdump\n"); |
| + ReportConditionalErrorAndExit( |
| + settings.custom_call_order_filename && settings.aec_dump_input_filename, |
| + "Error: --custom_call_order_file cannot be used when operating on an " |
| + "aecdump\n"); |
| + |
| auto valid_wav_name = [](const std::string& wav_file_name) { |
| if (wav_file_name.size() < 5) { |
| return false; |