OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_ | 5 #ifndef CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_ |
6 #define CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_ | 6 #define CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 | 12 |
| 13 namespace base { |
13 class CommandLine; | 14 class CommandLine; |
| 15 } |
14 | 16 |
15 // A set of utilities for test code that launches separate processes. | 17 // A set of utilities for test code that launches separate processes. |
16 namespace test_launcher_utils { | 18 namespace test_launcher_utils { |
17 | 19 |
18 // Appends browser switches to provided |command_line| to be used | 20 // Appends browser switches to provided |command_line| to be used |
19 // when running under tests. | 21 // when running under tests. |
20 void PrepareBrowserCommandLineForTests(CommandLine* command_line); | 22 void PrepareBrowserCommandLineForTests(base::CommandLine* command_line); |
21 | 23 |
22 // Overrides the current process' user data dir. | 24 // Overrides the current process' user data dir. |
23 bool OverrideUserDataDir( | 25 bool OverrideUserDataDir( |
24 const base::FilePath& user_data_dir) WARN_UNUSED_RESULT; | 26 const base::FilePath& user_data_dir) WARN_UNUSED_RESULT; |
25 | 27 |
26 } // namespace test_launcher_utils | 28 } // namespace test_launcher_utils |
27 | 29 |
28 #endif // CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_ | 30 #endif // CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_ |
OLD | NEW |