Added option to specify a maximum file size when recording an AEC dump.
For applications with a strict filesize limit for debug files, I added an option to specify a maximum filesize for AEC dumps. An existing unit test is extended to check that the feature works as advertised. BUG=webrtc:4741 TBR=glaznev@webrtc.org Review URL: https://codereview.webrtc.org/1413483003 Cr-Commit-Position: refs/heads/master@{#11081}
This commit is contained in:
@ -434,7 +434,7 @@ void void_main(int argc, char* argv[]) {
|
||||
} else if (strcmp(argv[i], "--debug_file") == 0) {
|
||||
i++;
|
||||
ASSERT_LT(i, argc) << "Specify filename after --debug_file";
|
||||
ASSERT_EQ(apm->kNoError, apm->StartDebugRecording(argv[i]));
|
||||
ASSERT_EQ(apm->kNoError, apm->StartDebugRecording(argv[i], -1));
|
||||
} else {
|
||||
FAIL() << "Unrecognized argument " << argv[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user