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

Unified Diff: remoting/host/host_config_unittest.cc

Issue 959033004: Remove ClientLogin support from remoting host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « remoting/host/host_config_constants.cc ('k') | remoting/host/host_signaling_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_config_unittest.cc
diff --git a/remoting/host/host_config_unittest.cc b/remoting/host/host_config_unittest.cc
index 5e6fab6c333e135ee2d230c7f7d0baf3862612e4..3500381ee1c2aecde1085f8971acc3cdcefca5f7 100644
--- a/remoting/host/host_config_unittest.cc
+++ b/remoting/host/host_config_unittest.cc
@@ -17,7 +17,7 @@ namespace {
const char* kTestConfig =
"{\n"
" \"xmpp_login\" : \"test@gmail.com\",\n"
-" \"xmpp_auth_token\" : \"TEST_AUTH_TOKEN\",\n"
+" \"oauth_refresh_token\" : \"TEST_REFRESH_TOKEN\",\n"
" \"host_id\" : \"TEST_HOST_ID\",\n"
" \"host_name\" : \"TEST_MACHINE_NAME\",\n"
" \"private_key\" : \"TEST_PRIVATE_KEY\"\n"
@@ -57,8 +57,8 @@ TEST_F(HostConfigTest, Read) {
std::string value;
EXPECT_TRUE(target->GetString(kXmppLoginConfigPath, &value));
EXPECT_EQ("test@gmail.com", value);
- EXPECT_TRUE(target->GetString(kXmppAuthTokenConfigPath, &value));
- EXPECT_EQ("TEST_AUTH_TOKEN", value);
+ EXPECT_TRUE(target->GetString(kOAuthRefreshTokenConfigPath, &value));
+ EXPECT_EQ("TEST_REFRESH_TOKEN", value);
EXPECT_TRUE(target->GetString(kHostIdConfigPath, &value));
EXPECT_EQ("TEST_HOST_ID", value);
EXPECT_TRUE(target->GetString(kHostNameConfigPath, &value));
@@ -77,8 +77,8 @@ TEST_F(HostConfigTest, Write) {
scoped_ptr<base::DictionaryValue> target(HostConfigFromJsonFile(test_file));
ASSERT_TRUE(target);
- std::string new_auth_token_value = "NEW_AUTH_TOKEN";
- target->SetString(kXmppAuthTokenConfigPath, new_auth_token_value);
+ std::string new_refresh_token_value = "NEW_REFRESH_TOKEN";
+ target->SetString(kOAuthRefreshTokenConfigPath, new_refresh_token_value);
ASSERT_TRUE(HostConfigToJsonFile(*target, test_file));
// Now read the file again and check that the value has been written.
@@ -88,8 +88,8 @@ TEST_F(HostConfigTest, Write) {
std::string value;
EXPECT_TRUE(reader->GetString(kXmppLoginConfigPath, &value));
EXPECT_EQ("test@gmail.com", value);
- EXPECT_TRUE(reader->GetString(kXmppAuthTokenConfigPath, &value));
- EXPECT_EQ(new_auth_token_value, value);
+ EXPECT_TRUE(reader->GetString(kOAuthRefreshTokenConfigPath, &value));
+ EXPECT_EQ(new_refresh_token_value, value);
EXPECT_TRUE(reader->GetString(kHostIdConfigPath, &value));
EXPECT_EQ("TEST_HOST_ID", value);
EXPECT_TRUE(reader->GetString(kHostNameConfigPath, &value));
« no previous file with comments | « remoting/host/host_config_constants.cc ('k') | remoting/host/host_signaling_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698