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

Unified Diff: remoting/test/chromoting_test_driver_environment.h

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.cc ('k') | remoting/test/chromoting_test_driver_environment.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.h
diff --git a/remoting/test/chromoting_test_driver_environment.h b/remoting/test/chromoting_test_driver_environment.h
index e6e1bc64fb84ce7911c53225681d393ee750ce88..369a4e7394335c3f2e9268bd0c353e5d4124b3a7 100644
--- a/remoting/test/chromoting_test_driver_environment.h
+++ b/remoting/test/chromoting_test_driver_environment.h
@@ -40,6 +40,7 @@ class ChromotingTestDriverEnvironment : public testing::Environment {
std::string host_jid;
std::string pin;
base::FilePath refresh_token_file_path;
+ bool use_test_environment;
};
explicit ChromotingTestDriverEnvironment(const EnvironmentOptions& options);
@@ -72,6 +73,7 @@ class ChromotingTestDriverEnvironment : public testing::Environment {
const std::string& host_name() const { return host_name_; }
const std::string& pin() const { return pin_; }
const std::string& user_name() const { return user_name_; }
+ bool use_test_environment() const { return use_test_environment_; }
const std::vector<HostInfo>& host_list() const { return host_list_; }
const HostInfo& host_info() const { return host_info_; }
@@ -125,6 +127,9 @@ class ChromotingTestDriverEnvironment : public testing::Environment {
// Path to a JSON file containing refresh tokens.
base::FilePath refresh_token_file_path_;
+ // Indicates whether the test environment APIs should be used.
+ const bool use_test_environment_;
+
// List of remote hosts for the specified user/test-account.
std::vector<HostInfo> host_list_;
@@ -132,13 +137,13 @@ class ChromotingTestDriverEnvironment : public testing::Environment {
HostInfo host_info_;
// Access token fetcher used by TestDriverEnvironment tests.
- remoting::test::AccessTokenFetcher* test_access_token_fetcher_;
+ remoting::test::AccessTokenFetcher* test_access_token_fetcher_ = nullptr;
// RefreshTokenStore used by TestDriverEnvironment tests.
- remoting::test::RefreshTokenStore* test_refresh_token_store_;
+ remoting::test::RefreshTokenStore* test_refresh_token_store_ = nullptr;
// HostListFetcher used by TestDriverEnvironment tests.
- remoting::test::HostListFetcher* test_host_list_fetcher_;
+ remoting::test::HostListFetcher* test_host_list_fetcher_ = nullptr;
// Used for running network request tasks.
std::unique_ptr<base::MessageLoopForIO> message_loop_;
« no previous file with comments | « remoting/test/chromoting_test_driver.cc ('k') | remoting/test/chromoting_test_driver_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698