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:
parent
620d444c0b
commit
1092ea0192
@ -1509,8 +1509,19 @@ void ApmTest::ProcessDebugDump(const std::string& in_filename,
|
|||||||
|
|
||||||
void ApmTest::VerifyDebugDumpTest(Format format) {
|
void ApmTest::VerifyDebugDumpTest(Format format) {
|
||||||
const std::string in_filename = test::ResourcePath("ref03", "aecdump");
|
const std::string in_filename = test::ResourcePath("ref03", "aecdump");
|
||||||
const std::string ref_filename = test::OutputPath() + "ref.aecdump";
|
std::string format_string;
|
||||||
const std::string out_filename = test::OutputPath() + "out.aecdump";
|
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();
|
EnableAllComponents();
|
||||||
ProcessDebugDump(in_filename, ref_filename, format);
|
ProcessDebugDump(in_filename, ref_filename, format);
|
||||||
ProcessDebugDump(ref_filename, out_filename, format);
|
ProcessDebugDump(ref_filename, out_filename, format);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user