From 454c1d6a2305b7f0c8395b8e76b9a8aaaf8ee258 Mon Sep 17 00:00:00 2001 From: ehmaldonado Date: Thu, 16 Feb 2017 03:54:49 -0800 Subject: [PATCH] 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} --- webrtc/modules/audio_coding/neteq/test/neteq_speed_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webrtc/modules/audio_coding/neteq/test/neteq_speed_test.cc b/webrtc/modules/audio_coding/neteq/test/neteq_speed_test.cc index 05e75f34e4..b835499b29 100644 --- a/webrtc/modules/audio_coding/neteq/test/neteq_speed_test.cc +++ b/webrtc/modules/audio_coding/neteq/test/neteq_speed_test.cc @@ -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.