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(); |