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

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

Issue 886463003: iOS gtest launcher: retry tests in one big batch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: C++11 Created 5 years, 10 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 | « base/test/launcher/test_launcher_ios.cc ('k') | base/test/launcher/unit_test_launcher.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 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 #ifndef BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_ 5 #ifndef BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_
6 #define BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_ 6 #define BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/test/launcher/test_launcher.h" 10 #include "base/test/launcher/test_launcher.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // of current process. |test_names| is a vector of test full names 48 // of current process. |test_names| is a vector of test full names
49 // (e.g. "A.B"), |output_file| is path to the GTest XML output file. 49 // (e.g. "A.B"), |output_file| is path to the GTest XML output file.
50 virtual CommandLine GetCommandLineForChildGTestProcess( 50 virtual CommandLine GetCommandLineForChildGTestProcess(
51 const std::vector<std::string>& test_names, 51 const std::vector<std::string>& test_names,
52 const base::FilePath& output_file) = 0; 52 const base::FilePath& output_file) = 0;
53 53
54 // Returns wrapper to use for child GTest process. Empty string means 54 // Returns wrapper to use for child GTest process. Empty string means
55 // no wrapper. 55 // no wrapper.
56 virtual std::string GetWrapperForChildGTestProcess() = 0; 56 virtual std::string GetWrapperForChildGTestProcess() = 0;
57 57
58 // Relaunch tests, e.g. after a crash.
59 virtual void RelaunchTests(TestLauncher* test_launcher,
60 const std::vector<std::string>& test_names,
61 int launch_flags) = 0;
62
58 protected: 63 protected:
59 ~UnitTestPlatformDelegate() {} 64 ~UnitTestPlatformDelegate() {}
60 }; 65 };
61 66
62 // Runs tests serially, each in its own process. 67 // Runs tests serially, each in its own process.
63 void RunUnitTestsSerially(TestLauncher* test_launcher, 68 void RunUnitTestsSerially(TestLauncher* test_launcher,
64 UnitTestPlatformDelegate* platform_delegate, 69 UnitTestPlatformDelegate* platform_delegate,
65 const std::vector<std::string>& test_names, 70 const std::vector<std::string>& test_names,
66 int launch_flags); 71 int launch_flags);
67 72
(...skipping 30 matching lines...) Expand all
98 103
99 // Determines whether we use job objects on Windows. 104 // Determines whether we use job objects on Windows.
100 bool use_job_objects_; 105 bool use_job_objects_;
101 106
102 DISALLOW_COPY_AND_ASSIGN(UnitTestLauncherDelegate); 107 DISALLOW_COPY_AND_ASSIGN(UnitTestLauncherDelegate);
103 }; 108 };
104 109
105 } // namespace base 110 } // namespace base
106 111
107 #endif // BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_ 112 #endif // BASE_TEST_LAUNCHER_UNIT_TEST_LAUNCHER_H_
OLDNEW
« no previous file with comments | « base/test/launcher/test_launcher_ios.cc ('k') | base/test/launcher/unit_test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698