OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 } | 94 } |
95 | 95 |
96 } // namespace voetest | 96 } // namespace voetest |
97 } // namespace webrtc | 97 } // namespace webrtc |
98 | 98 |
99 #if !defined(WEBRTC_IOS) | 99 #if !defined(WEBRTC_IOS) |
100 int main(int argc, char** argv) { | 100 int main(int argc, char** argv) { |
101 // This function and RunInAutomatedMode is defined in automated_mode.cc | 101 // This function and RunInAutomatedMode is defined in automated_mode.cc |
102 // to avoid macro clashes with googletest (for instance ASSERT_TRUE). | 102 // to avoid macro clashes with googletest (for instance ASSERT_TRUE). |
103 webrtc::voetest::InitializeGoogleTest(&argc, argv); | 103 webrtc::voetest::InitializeGoogleTest(&argc, argv); |
104 // AllowCommandLineParsing allows us to ignore flags passed on to us by | |
105 // Chromium build bots without having to explicitly disable them. | |
106 google::AllowCommandLineReparsing(); | |
107 google::ParseCommandLineFlags(&argc, &argv, true); | 104 google::ParseCommandLineFlags(&argc, &argv, true); |
108 | 105 |
109 if (FLAGS_automated) { | 106 if (FLAGS_automated) { |
110 return webrtc::voetest::RunInAutomatedMode(); | 107 return webrtc::voetest::RunInAutomatedMode(); |
111 } | 108 } |
112 | 109 |
113 return webrtc::voetest::RunInManualMode(); | 110 return webrtc::voetest::RunInManualMode(); |
114 } | 111 } |
115 #endif //#if !defined(WEBRTC_IOS) | 112 #endif //#if !defined(WEBRTC_IOS) |
OLD | NEW |