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

Unified Diff: chromecast/browser/test/chromecast_browser_test_runner.cc

Issue 942943003: Chromecast: adds internal flags necessary for browser test runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/test/chromecast_browser_test_runner.cc
diff --git a/chromecast/browser/test/chromecast_browser_test_runner.cc b/chromecast/browser/test/chromecast_browser_test_runner.cc
index ff85ca7f8e1b75d51b4a74647d28a5923f0a9715..587d745cfad7eb3763853ce5d18f94b315456566 100644
--- a/chromecast/browser/test/chromecast_browser_test_runner.cc
+++ b/chromecast/browser/test/chromecast_browser_test_runner.cc
@@ -16,6 +16,11 @@ namespace shell {
namespace {
+// Duplicate settings to avoid link dependency on chromecast/internal.
+const char kSwitchesAVSettingsUnixSocketPath[] = "av-settings-unix-socket-path";
+const char kSwitchesNoWifi[] = "no-wifi";
+
+const char kAvSettingsUnixSocketPath[] = "/tmp/avsettings";
const char kTestTypeBrowser[] = "browser";
class BrowserTestSuite : public content::ContentTestSuiteBase {
@@ -43,7 +48,10 @@ class ChromecastTestLauncherDelegate : public content::TestLauncherDelegate {
base::CommandLine* command_line,
const base::FilePath& temp_data_dir) override {
// TODO(gunsch): handle temp_data_dir
+ command_line->AppendSwitch(kSwitchesNoWifi);
command_line->AppendSwitchASCII(switches::kTestType, kTestTypeBrowser);
+ command_line->AppendSwitchASCII(kSwitchesAVSettingsUnixSocketPath,
+ kAvSettingsUnixSocketPath);
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698