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

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

Issue 2729523006: Remove the |max_threads| argument from CreateAndSetSimpleTaskScheduler(). (Closed)
Patch Set: fix build error Created 3 years, 9 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') | ui/ozone/demo/ozone_demo.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 const int kMaxBackgroundThreads = 5; 191 base::TaskScheduler::CreateAndSetSimpleTaskScheduler("ChromotingTestDriver");
192 base::TaskScheduler::CreateAndSetSimpleTaskScheduler(kMaxBackgroundThreads);
193 192
194 // Update the logging verbosity level if user specified one. 193 // Update the logging verbosity level if user specified one.
195 std::string verbosity_level( 194 std::string verbosity_level(
196 command_line->GetSwitchValueASCII(switches::kLoggingLevelSwitchName)); 195 command_line->GetSwitchValueASCII(switches::kLoggingLevelSwitchName));
197 if (!verbosity_level.empty()) { 196 if (!verbosity_level.empty()) {
198 // Turn on logging for the test_driver and remoting components. 197 // Turn on logging for the test_driver and remoting components.
199 // This switch is parsed during logging::InitLogging. 198 // This switch is parsed during logging::InitLogging.
200 command_line->AppendSwitchASCII("vmodule", 199 command_line->AppendSwitchASCII("vmodule",
201 "*/remoting/*=" + verbosity_level); 200 "*/remoting/*=" + verbosity_level);
202 logging::LoggingSettings logging_settings; 201 logging::LoggingSettings logging_settings;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 #if defined(OS_IOS) 283 #if defined(OS_IOS)
285 return base::LaunchUnitTests( 284 return base::LaunchUnitTests(
286 argc, argv, 285 argc, argv,
287 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); 286 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
288 #else 287 #else
289 return base::LaunchUnitTestsSerially( 288 return base::LaunchUnitTestsSerially(
290 argc, argv, 289 argc, argv,
291 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); 290 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
292 #endif 291 #endif
293 } 292 }
OLDNEW
« no previous file with comments | « remoting/host/setup/start_host_main.cc ('k') | ui/ozone/demo/ozone_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698