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

Side by Side Diff: base/test/launcher/unit_test_launcher.cc

Issue 1544113002: Switch to standard integer types in base/test/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « base/test/launcher/unit_test_launcher.h ('k') | base/test/malloc_wrapper.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/launcher/unit_test_launcher.h" 5 #include "base/test/launcher/unit_test_launcher.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/debug/debugger.h" 12 #include "base/debug/debugger.h"
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.h"
15 #include "base/format_macros.h" 15 #include "base/format_macros.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/macros.h"
17 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
18 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
19 #include "base/stl_util.h" 20 #include "base/stl_util.h"
20 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
21 #include "base/strings/string_util.h" 22 #include "base/strings/string_util.h"
22 #include "base/sys_info.h" 23 #include "base/sys_info.h"
23 #include "base/test/gtest_xml_util.h" 24 #include "base/test/gtest_xml_util.h"
24 #include "base/test/launcher/test_launcher.h" 25 #include "base/test/launcher/test_launcher.h"
25 #include "base/test/test_switches.h" 26 #include "base/test/test_switches.h"
26 #include "base/test/test_timeouts.h" 27 #include "base/test/test_timeouts.h"
27 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 28 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
28 #include "base/thread_task_runner_handle.h" 29 #include "base/thread_task_runner_handle.h"
29 #include "base/threading/thread_checker.h" 30 #include "base/threading/thread_checker.h"
31 #include "build/build_config.h"
30 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
31 33
32 namespace base { 34 namespace base {
33 35
34 namespace { 36 namespace {
35 37
36 // This constant controls how many tests are run in a single batch by default. 38 // This constant controls how many tests are run in a single batch by default.
37 const size_t kDefaultTestBatchLimit = 10; 39 const size_t kDefaultTestBatchLimit = 10;
38 40
39 const char kHelpFlag[] = "help"; 41 const char kHelpFlag[] = "help";
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 TestLauncher* test_launcher, 626 TestLauncher* test_launcher,
625 const std::vector<std::string>& test_names) { 627 const std::vector<std::string>& test_names) {
626 ThreadTaskRunnerHandle::Get()->PostTask( 628 ThreadTaskRunnerHandle::Get()->PostTask(
627 FROM_HERE, 629 FROM_HERE,
628 Bind(&RunUnitTestsSerially, test_launcher, platform_delegate_, test_names, 630 Bind(&RunUnitTestsSerially, test_launcher, platform_delegate_, test_names,
629 use_job_objects_ ? TestLauncher::USE_JOB_OBJECTS : 0)); 631 use_job_objects_ ? TestLauncher::USE_JOB_OBJECTS : 0));
630 return test_names.size(); 632 return test_names.size();
631 } 633 }
632 634
633 } // namespace base 635 } // namespace base
OLDNEW
« no previous file with comments | « base/test/launcher/unit_test_launcher.h ('k') | base/test/malloc_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698