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

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

Issue 947993003: Chromecast: disables wifi-based features on ATV. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adds comment 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 | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/common/chromecast_switches.h » ('j') | 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 587d745cfad7eb3763853ce5d18f94b315456566..1eb0c44c1528cfb3992f04167a7dc3a4ab4609ef 100644
--- a/chromecast/browser/test/chromecast_browser_test_runner.cc
+++ b/chromecast/browser/test/chromecast_browser_test_runner.cc
@@ -6,6 +6,7 @@
#include "base/macros.h"
#include "base/sys_info.h"
#include "chromecast/app/cast_main_delegate.h"
+#include "chromecast/common/chromecast_switches.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/content_test_suite_base.h"
#include "content/public/test/test_launcher.h"
@@ -16,9 +17,8 @@ namespace shell {
namespace {
-// Duplicate settings to avoid link dependency on chromecast/internal.
+// Duplicate switch to avoid 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";
@@ -48,7 +48,7 @@ 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->AppendSwitch(switches::kNoWifi);
command_line->AppendSwitchASCII(switches::kTestType, kTestTypeBrowser);
command_line->AppendSwitchASCII(kSwitchesAVSettingsUnixSocketPath,
kAvSettingsUnixSocketPath);
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/common/chromecast_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698