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

Unified Diff: chrome/test/base/test_launcher_utils.cc

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, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/test_launcher_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/test_launcher_utils.cc
diff --git a/chrome/test/base/test_launcher_utils.cc b/chrome/test/base/test_launcher_utils.cc
index 61fb15dd81fbd0930a2f36c8273af1a80a06060f..3616ddb06820ea386af696f0fff40e18052639cb 100644
--- a/chrome/test/base/test_launcher_utils.cc
+++ b/chrome/test/base/test_launcher_utils.cc
@@ -72,6 +72,21 @@ void PrepareBrowserCommandLineForTests(base::CommandLine* command_line) {
command_line->AppendSwitch(switches::kDisableComponentUpdate);
}
+void RemoveCommandLineSwitch(const base::CommandLine& in_command_line,
+ const std::string& switch_to_remove,
+ base::CommandLine* out_command_line) {
+ const base::CommandLine::SwitchMap& switch_map =
+ in_command_line.GetSwitches();
+ for (base::CommandLine::SwitchMap::const_iterator i = switch_map.begin();
+ i != switch_map.end(); ++i) {
+ const std::string& switch_name = i->first;
+ if (switch_name == switch_to_remove)
+ continue;
+
+ out_command_line->AppendSwitchNative(switch_name, i->second);
+ }
+}
+
bool OverrideUserDataDir(const base::FilePath& user_data_dir) {
bool success = true;
« no previous file with comments | « chrome/test/base/test_launcher_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698