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

Side by Side Diff: remoting/test/app_remoting_test_driver.cc

Issue 1053123010: base: Remove using declaration from test_suite.h header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chrome/installer/setup Created 5 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/test/launcher/unit_test_launcher.h" 9 #include "base/test/launcher/unit_test_launcher.h"
10 #include "base/test/test_suite.h" 10 #include "base/test/test_suite.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 printf("\nTool usage example with the newly created auth code:\n"); 114 printf("\nTool usage example with the newly created auth code:\n");
115 printf("ar_test_driver --%s=example@gmail.com --%s=4/AKtf...\n\n", 115 printf("ar_test_driver --%s=example@gmail.com --%s=4/AKtf...\n\n",
116 switches::kUserNameSwitchName, switches::kAuthCodeSwitchName); 116 switches::kUserNameSwitchName, switches::kAuthCodeSwitchName);
117 } 117 }
118 118
119 } // namespace 119 } // namespace
120 120
121 int main(int argc, char** argv) { 121 int main(int argc, char** argv) {
122 testing::InitGoogleTest(&argc, argv); 122 testing::InitGoogleTest(&argc, argv);
123 TestSuite test_suite(argc, argv); 123 base::TestSuite test_suite(argc, argv);
124 124
125 // The pointer returned here refers to a singleton, since we don't own the 125 // The pointer returned here refers to a singleton, since we don't own the
126 // lifetime of the object, don't wrap in a scoped_ptr construct or release it. 126 // lifetime of the object, don't wrap in a scoped_ptr construct or release it.
127 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 127 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
128 DCHECK(command_line); 128 DCHECK(command_line);
129 129
130 // We do not want to retry failures as a failed test should signify an error 130 // We do not want to retry failures as a failed test should signify an error
131 // to be investigated. 131 // to be investigated.
132 command_line->AppendSwitchASCII(switches::kTestLauncherRetryLimit, "0"); 132 command_line->AppendSwitchASCII(switches::kTestLauncherRetryLimit, "0");
133 133
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // value to our global* and transfer ownership to the framework. 223 // value to our global* and transfer ownership to the framework.
224 remoting::test::AppRemotingSharedData = shared_data.release(); 224 remoting::test::AppRemotingSharedData = shared_data.release();
225 testing::AddGlobalTestEnvironment(remoting::test::AppRemotingSharedData); 225 testing::AddGlobalTestEnvironment(remoting::test::AppRemotingSharedData);
226 226
227 // Because many tests may access the same remoting host(s), we need to run 227 // Because many tests may access the same remoting host(s), we need to run
228 // the tests sequentially so they do not interfere with each other. 228 // the tests sequentially so they do not interfere with each other.
229 return base::LaunchUnitTestsSerially( 229 return base::LaunchUnitTestsSerially(
230 argc, argv, 230 argc, argv,
231 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); 231 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
232 } 232 }
OLDNEW
« no previous file with comments | « chrome/installer/util/run_all_unittests.cc ('k') | sandbox/win/tests/integration_tests/integration_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698