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

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

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest 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
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/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/single_thread_task_runner.h" 18 #include "base/single_thread_task_runner.h"
19 #include "base/stl_util.h" 19 #include "base/stl_util.h"
20 #include "base/strings/string_number_conversions.h" 20 #include "base/strings/string_number_conversions.h"
21 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
22 #include "base/sys_info.h" 22 #include "base/sys_info.h"
23 #include "base/test/gtest_xml_util.h" 23 #include "base/test/gtest_xml_util.h"
24 #include "base/test/launcher/test_launcher.h" 24 #include "base/test/launcher/test_launcher.h"
25 #include "base/test/test_switches.h" 25 #include "base/test/test_switches.h"
26 #include "base/test/test_timeouts.h" 26 #include "base/test/test_timeouts.h"
27 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 27 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
28 #include "base/thread_task_runner_handle.h" 28 #include "base/thread_task_runner_handle.h"
29 #include "base/threading/thread_checker.h" 29 #include "base/threading/thread_checker.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/googletest/include/gtest/gtest.h"
31 31
32 namespace base { 32 namespace base {
33 33
34 namespace { 34 namespace {
35 35
36 // This constant controls how many tests are run in a single batch by default. 36 // This constant controls how many tests are run in a single batch by default.
37 const size_t kDefaultTestBatchLimit = 10; 37 const size_t kDefaultTestBatchLimit = 10;
38 38
39 const char kHelpFlag[] = "help"; 39 const char kHelpFlag[] = "help";
40 40
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 TestLauncher* test_launcher, 620 TestLauncher* test_launcher,
621 const std::vector<std::string>& test_names) { 621 const std::vector<std::string>& test_names) {
622 ThreadTaskRunnerHandle::Get()->PostTask( 622 ThreadTaskRunnerHandle::Get()->PostTask(
623 FROM_HERE, 623 FROM_HERE,
624 Bind(&RunUnitTestsSerially, test_launcher, platform_delegate_, test_names, 624 Bind(&RunUnitTestsSerially, test_launcher, platform_delegate_, test_names,
625 use_job_objects_ ? TestLauncher::USE_JOB_OBJECTS : 0)); 625 use_job_objects_ ? TestLauncher::USE_JOB_OBJECTS : 0));
626 return test_names.size(); 626 return test_names.size();
627 } 627 }
628 628
629 } // namespace base 629 } // namespace base
OLDNEW
« no previous file with comments | « base/test/launcher/test_launcher.cc ('k') | base/test/launcher/unit_test_launcher_nacl_nonsfi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698