phoglund@webrtc.org | cff98ca | 2011-11-08 13:08:25 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
phoglund@webrtc.org | 188fc35 | 2011-12-19 09:36:03 +0000 | [diff] [blame] | 10 | |
kwiberg | 77eab70 | 2016-09-28 17:42:01 -0700 | [diff] [blame] | 11 | #include "webrtc/test/gtest.h" |
pbos@webrtc.org | 956aa7e | 2013-05-21 13:52:32 +0000 | [diff] [blame] | 12 | #include "webrtc/test/testsupport/fileutils.h" |
phoglund@webrtc.org | cff98ca | 2011-11-08 13:08:25 +0000 | [diff] [blame] | 13 | |
kwiberg | 492c09f | 2017-04-20 13:17:52 -0700 | [diff] [blame] | 14 | namespace webrtc { |
| 15 | namespace voetest { |
| 16 | |
phoglund@webrtc.org | ff33bdd | 2012-10-10 15:41:03 +0000 | [diff] [blame] | 17 | void InitializeGoogleTest(int* argc, char** argv) { |
kjellander@webrtc.org | 52ec985 | 2012-11-27 10:01:01 +0000 | [diff] [blame] | 18 | // Initialize WebRTC testing framework so paths to resources can be resolved. |
| 19 | webrtc::test::SetExecutablePath(argv[0]); |
phoglund@webrtc.org | ff33bdd | 2012-10-10 15:41:03 +0000 | [diff] [blame] | 20 | testing::InitGoogleTest(argc, argv); |
| 21 | } |
phoglund@webrtc.org | cff98ca | 2011-11-08 13:08:25 +0000 | [diff] [blame] | 22 | |
phoglund@webrtc.org | ff33bdd | 2012-10-10 15:41:03 +0000 | [diff] [blame] | 23 | int RunInAutomatedMode() { |
phoglund@webrtc.org | cff98ca | 2011-11-08 13:08:25 +0000 | [diff] [blame] | 24 | return RUN_ALL_TESTS(); |
| 25 | } |
kwiberg | 492c09f | 2017-04-20 13:17:52 -0700 | [diff] [blame] | 26 | |
| 27 | } // namespace voetest |
| 28 | } // namespace webrtc |