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
This commit is contained in:
henrik.lundin@webrtc.org 2014-04-02 07:46:49 +00:00
parent 620d444c0b
commit 1092ea0192

View File

@ -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);