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

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

Issue 2836293006: Remove TaskScheduler::CreateAndSetSimpleTaskScheduler(). (Closed)
Patch Set: Created 3 years, 7 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 | « remoting/host/setup/start_host_main.cc ('k') | services/service_manager/embedder/main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/feature_list.h" 7 #include "base/feature_list.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 return base::LaunchUnitTests( 181 return base::LaunchUnitTests(
182 argc, argv, 182 argc, argv,
183 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); 183 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
184 #else 184 #else
185 return base::LaunchUnitTestsSerially( 185 return base::LaunchUnitTestsSerially(
186 argc, argv, 186 argc, argv,
187 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); 187 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
188 #endif 188 #endif
189 } 189 }
190 190
191 base::TaskScheduler::CreateAndSetSimpleTaskScheduler("ChromotingTestDriver"); 191 base::TaskScheduler::CreateAndStartWithDefaultParams("ChromotingTestDriver");
192 192
193 // Update the logging verbosity level if user specified one. 193 // Update the logging verbosity level if user specified one.
194 std::string verbosity_level( 194 std::string verbosity_level(
195 command_line->GetSwitchValueASCII(switches::kLoggingLevelSwitchName)); 195 command_line->GetSwitchValueASCII(switches::kLoggingLevelSwitchName));
196 if (!verbosity_level.empty()) { 196 if (!verbosity_level.empty()) {
197 // Turn on logging for the test_driver and remoting components. 197 // Turn on logging for the test_driver and remoting components.
198 // This switch is parsed during logging::InitLogging. 198 // This switch is parsed during logging::InitLogging.
199 command_line->AppendSwitchASCII("vmodule", 199 command_line->AppendSwitchASCII("vmodule",
200 "*/remoting/*=" + verbosity_level); 200 "*/remoting/*=" + verbosity_level);
201 logging::LoggingSettings logging_settings; 201 logging::LoggingSettings logging_settings;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 #if defined(OS_IOS) 283 #if defined(OS_IOS)
284 return base::LaunchUnitTests( 284 return base::LaunchUnitTests(
285 argc, argv, 285 argc, argv,
286 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); 286 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
287 #else 287 #else
288 return base::LaunchUnitTestsSerially( 288 return base::LaunchUnitTestsSerially(
289 argc, argv, 289 argc, argv,
290 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); 290 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
291 #endif 291 #endif
292 } 292 }
OLDNEW
« no previous file with comments | « remoting/host/setup/start_host_main.cc ('k') | services/service_manager/embedder/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698