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

Unified Diff: remoting/test/chromoting_test_driver_environment.cc

Issue 2542343004: Updating the Chromoting Test Driver to target the test environment (Closed)
Patch Set: Addressing feedback Created 4 years 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/chromoting_test_driver_environment.h ('k') | remoting/test/chromoting_test_driver_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/chromoting_test_driver_environment.cc
diff --git a/remoting/test/chromoting_test_driver_environment.cc b/remoting/test/chromoting_test_driver_environment.cc
index 0744b23c5026c6be1f09fddbc38ae426a0026e24..356e9010ece3fa7aa5063dadcc1e5294d43477ac 100644
--- a/remoting/test/chromoting_test_driver_environment.cc
+++ b/remoting/test/chromoting_test_driver_environment.cc
@@ -34,9 +34,7 @@ ChromotingTestDriverEnvironment::ChromotingTestDriverEnvironment(
user_name_(options.user_name),
pin_(options.pin),
refresh_token_file_path_(options.refresh_token_file_path),
- test_access_token_fetcher_(nullptr),
- test_refresh_token_store_(nullptr),
- test_host_list_fetcher_(nullptr) {
+ use_test_environment_(options.use_test_environment) {
DCHECK(!user_name_.empty());
DCHECK(!host_name_.empty());
}
@@ -294,7 +292,10 @@ bool ChromotingTestDriverEnvironment::RetrieveHostList() {
base::Bind(&ChromotingTestDriverEnvironment::OnHostListRetrieved,
base::Unretained(this), run_loop.QuitClosure());
- host_list_fetcher->RetrieveHostlist(access_token_, host_list_callback);
+ host_list_fetcher->RetrieveHostlist(
+ access_token_,
+ use_test_environment_ ? kHostListTestRequestUrl : kHostListProdRequestUrl,
+ host_list_callback);
run_loop.Run();
« no previous file with comments | « remoting/test/chromoting_test_driver_environment.h ('k') | remoting/test/chromoting_test_driver_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698