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

Unified Diff: remoting/test/app_remoting_test_driver.cc

Issue 1357973002: Removing Test and Staging environments from App Remoting Test Driver tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing unittest Created 5 years, 3 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 | « remoting/test/app_remoting_service_urls.cc ('k') | remoting/test/remote_host_info_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/app_remoting_test_driver.cc
diff --git a/remoting/test/app_remoting_test_driver.cc b/remoting/test/app_remoting_test_driver.cc
index 3d8604e33494333a7a722b3c2f3740f611e79259..577ea63ffbe13cf0583c3719dc1082dad1cd5512 100644
--- a/remoting/test/app_remoting_test_driver.cc
+++ b/remoting/test/app_remoting_test_driver.cc
@@ -23,7 +23,6 @@ const char kHelpSwitchName[] = "help";
const char kLoggingLevelSwitchName[] = "verbosity";
const char kRefreshTokenFileSwitchName[] = "refresh-token-file";
const char kReleaseHostsAfterTestingSwitchName[] = "release-hosts-after-tests";
-const char kServiceEnvironmentSwitchName[] = "environment";
const char kShowHostAvailabilitySwitchName[] = "show-host-availability";
const char kSingleProcessTestsSwitchName[] = "single-process-tests";
const char kUserNameSwitchName[] = "username";
@@ -75,8 +74,6 @@ void PrintUsage() {
switches::kRefreshTokenFileSwitchName);
printf(" %s: Displays additional usage information\n",
switches::kHelpSwitchName);
- printf(" %s: Specifies the service api to use (dev|test) [default: dev]\n",
- switches::kServiceEnvironmentSwitchName);
printf(
" %s: Retrieves and displays the connection status for all known "
"hosts, no tests will be run\n",
@@ -226,26 +223,8 @@ int main(int argc, char** argv) {
options.release_hosts_when_done =
command_line->HasSwitch(switches::kReleaseHostsAfterTestingSwitchName);
- // If the user passed in a service environment, use it, otherwise set a
- // default value.
- std::string service_environment_switch(command_line->GetSwitchValueASCII(
- switches::kServiceEnvironmentSwitchName));
- if (service_environment_switch.empty() ||
- service_environment_switch == "dev") {
- options.service_environment =
+ options.service_environment =
remoting::test::ServiceEnvironment::kDeveloperEnvironment;
- } else if (service_environment_switch == "test") {
- options.service_environment =
- remoting::test::ServiceEnvironment::kTestingEnvironment;
- } else if (service_environment_switch == "staging") {
- options.service_environment =
- remoting::test::ServiceEnvironment::kStagingEnvironment;
- } else {
- LOG(ERROR) << "Invalid " << switches::kServiceEnvironmentSwitchName
- << " argument passed in.";
- PrintUsage();
- return -1;
- }
// Update the logging verbosity level is user specified one.
std::string verbosity_level(
« no previous file with comments | « remoting/test/app_remoting_service_urls.cc ('k') | remoting/test/remote_host_info_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698