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

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

Issue 1996863002: media: Use bundled Widevine CDM in encrypted media browser tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 6 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 | « chrome/test/base/in_process_browser_test.cc ('k') | chrome/test/base/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
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 namespace base {
14 class CommandLine; 14 class CommandLine;
15 } 15 }
16 16
17 // A set of utilities for test code that launches separate processes. 17 // A set of utilities for test code that launches separate processes.
18 namespace test_launcher_utils { 18 namespace test_launcher_utils {
19 19
20 // Appends browser switches to provided |command_line| to be used 20 // Appends browser switches to provided |command_line| to be used
21 // when running under tests. 21 // when running under tests.
22 void PrepareBrowserCommandLineForTests(base::CommandLine* command_line); 22 void PrepareBrowserCommandLineForTests(base::CommandLine* command_line);
23 23
24 // Appends all switches from |in_command_line| to |out_command_line| except for
25 // |switch_to_remove|.
26 // TODO(xhwang): Add CommandLine::RemoveSwitch() so we don't need this hack.
27 void RemoveCommandLineSwitch(const base::CommandLine& in_command_line,
28 const std::string& switch_to_remove,
29 base::CommandLine* out_command_line);
30
24 // Overrides the current process' user data dir. 31 // Overrides the current process' user data dir.
25 bool OverrideUserDataDir( 32 bool OverrideUserDataDir(
26 const base::FilePath& user_data_dir) WARN_UNUSED_RESULT; 33 const base::FilePath& user_data_dir) WARN_UNUSED_RESULT;
27 34
28 } // namespace test_launcher_utils 35 } // namespace test_launcher_utils
29 36
30 #endif // CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_ 37 #endif // CHROME_TEST_BASE_TEST_LAUNCHER_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | chrome/test/base/test_launcher_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698