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

Side by Side Diff: chrome/test/test_launcher_utils.h

Issue 7541001: Move more files from chrome/test to chrome/test/base, part #3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/test_browser_window.cc ('k') | chrome/test/test_launcher_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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.
4
5 #ifndef CHROME_TEST_TEST_LAUNCHER_UTILS_H_
6 #define CHROME_TEST_TEST_LAUNCHER_UTILS_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/compiler_specific.h"
12 #include "base/file_path.h"
13
14 class CommandLine;
15
16 // A set of utilities for test code that launches separate processes.
17 namespace test_launcher_utils {
18
19 // Appends browser switches to provided |command_line| to be used
20 // when running under tests.
21 void PrepareBrowserCommandLineForTests(CommandLine* command_line);
22
23 // Overrides the current process' user data dir.
24 bool OverrideUserDataDir(const FilePath& user_data_dir) WARN_UNUSED_RESULT;
25
26 // Override the GL implementation. The names are the same as for the --use-gl
27 // command line switch. Use the constants in the gfx namespace.
28 bool OverrideGLImplementation(
29 CommandLine* command_line,
30 const std::string& implementation_name) WARN_UNUSED_RESULT;
31
32 // Returns test termination tiemout based on test name
33 // and a default timeout. Makes it possible to override
34 // the default timeout using command-line or test prefix.
35 int GetTestTerminationTimeout(const std::string& test_name,
36 int default_timeout_ms);
37
38 } // namespace test_launcher_utils
39
40 #endif // CHROME_TEST_TEST_LAUNCHER_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/test/test_browser_window.cc ('k') | chrome/test/test_launcher_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698