From 1092ea0192bde040f170af29aa49d3dd94ae6c2b Mon Sep 17 00:00:00 2001 From: "henrik.lundin@webrtc.org" Date: Wed, 2 Apr 2014 07:46:49 +0000 Subject: [PATCH] Add format specification to output file names This change facilitates running ApmTest.VerifyDebugDumpInt and ApmTest.VerifyDebugDumpFloat in parallel, since they are not writing to the same files any longer. R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/10989004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5829 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../test/audio_processing_unittest.cc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/audio_processing/test/audio_processing_unittest.cc b/webrtc/modules/audio_processing/test/audio_processing_unittest.cc index 298e84438b..2aa37ca819 100644 --- a/webrtc/modules/audio_processing/test/audio_processing_unittest.cc +++ b/webrtc/modules/audio_processing/test/audio_processing_unittest.cc @@ -1509,8 +1509,19 @@ void ApmTest::ProcessDebugDump(const std::string& in_filename, void ApmTest::VerifyDebugDumpTest(Format format) { const std::string in_filename = test::ResourcePath("ref03", "aecdump"); - const std::string ref_filename = test::OutputPath() + "ref.aecdump"; - const std::string out_filename = test::OutputPath() + "out.aecdump"; + std::string format_string; + switch (format) { + case kIntFormat: + format_string = "_int"; + break; + case kFloatFormat: + format_string = "_float"; + break; + } + const std::string ref_filename = + test::OutputPath() + "ref" + format_string + ".aecdump"; + const std::string out_filename = + test::OutputPath() + "out" + format_string + ".aecdump"; EnableAllComponents(); ProcessDebugDump(in_filename, ref_filename, format); ProcessDebugDump(ref_filename, out_filename, format);