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
3 // found in the LICENSE file.
5 #ifndef CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_
6 #define CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_
10 #include "base/compiler_specific.h"
11 #include "base/file_path.h"
15 // A set of utilities for test code that launches separate processes.
16 namespace test_launcher_utils
{
18 // Appends browser switches to provided |command_line| to be used
19 // when running under tests.
20 void PrepareBrowserCommandLineForTests(CommandLine
* command_line
);
22 // Overrides the current process' user data dir.
23 bool OverrideUserDataDir(const FilePath
& user_data_dir
) WARN_UNUSED_RESULT
;
25 // Override the GL implementation. The names are the same as for the --use-gl
26 // command line switch. Use the constants in the gfx namespace.
27 bool OverrideGLImplementation(
28 CommandLine
* command_line
,
29 const std::string
& implementation_name
) WARN_UNUSED_RESULT
;
31 } // namespace test_launcher_utils
33 #endif // CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_