Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: webrtc/voice_engine/test/auto_test/voe_standard_test.cc

Issue 2999383002: Reland of Stop silently accepting unsupported flags in test binaries (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/test/test_main.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « webrtc/test/test_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698