Fix neteq_speed_test.cc
After https://codereview.webrtc.org/2340773002, the path from webrtc::test::ResourcePath in webrtc/modules/audio_coding/neteq/tools/neteq_performance_test.cc is wrong. It is /path/to/repos/resources/audio_coding/testfile32kHz.pcm It should be /path/to/repos/webrtc-temp/src/resources/audio_coding/testfile32kHz.pcm. The middle part is missing. The reason this target is affected is because webrtc::test::SetExecutablePath(argv[0]); was not called. That call is necessary for us to know that the test is being run from src/ and not from out/Default (as is assumed, when that function is not called.) BUG=chromium:497757 R=kjellander@webrtc.org, henrik.lundin@webrtc.org Review-Url: https://codereview.webrtc.org/2698743002 Cr-Commit-Position: refs/heads/master@{#16641}
This commit is contained in:
parent
2b1020d35f
commit
454c1d6a23
@ -14,6 +14,7 @@
|
||||
|
||||
#include "gflags/gflags.h"
|
||||
#include "webrtc/modules/audio_coding/neteq/tools/neteq_performance_test.h"
|
||||
#include "webrtc/test/testsupport/fileutils.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
||||
// Flag validators.
|
||||
@ -59,6 +60,7 @@ int main(int argc, char* argv[]) {
|
||||
"default is 0.1\n";
|
||||
google::SetUsageMessage(usage);
|
||||
google::ParseCommandLineFlags(&argc, &argv, true);
|
||||
webrtc::test::SetExecutablePath(argv[0]);
|
||||
|
||||
if (argc != 1) {
|
||||
// Print usage information.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user