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

Unified Diff: blimp/engine/app/blimp_engine_config_unittest.cc

Issue 2281783002: Changes client_token to be client_auth_token. (Closed)
Patch Set: Linting. Created 4 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 | « blimp/engine/app/blimp_engine_config.cc ('k') | blimp/engine/browser_tests/blimp_browser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/blimp_engine_config_unittest.cc
diff --git a/blimp/engine/app/blimp_engine_config_unittest.cc b/blimp/engine/app/blimp_engine_config_unittest.cc
index 1da804888d6ef46242f245cf1a76b21fca44c47a..2e945188b78a0e4b2ffbbb6096b1413a56727601 100644
--- a/blimp/engine/app/blimp_engine_config_unittest.cc
+++ b/blimp/engine/app/blimp_engine_config_unittest.cc
@@ -20,7 +20,7 @@ namespace engine {
namespace {
// Reference client token.
-static const char kTestClientToken[] = "Reference client token";
+static const char kTestClientAuthToken[] = "Reference client token";
class BlimpEngineConfigTest : public testing::Test {
protected:
@@ -29,7 +29,7 @@ class BlimpEngineConfigTest : public testing::Test {
// If a test requires a switch's file to be missing, call
// RemoveFileForSwitch().
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
- CreateFileForSwitch(kClientTokenPath, kTestClientToken);
+ CreateFileForSwitch(kClientAuthTokenPath, kTestClientAuthToken);
}
// Creates a file in the temp directory for a given filepath switch.
@@ -61,21 +61,22 @@ class BlimpEngineConfigTest : public testing::Test {
return temp_dir_.path().Append(filepath_switch);
}
- const std::vector<std::string> all_filepath_switches_ = {kClientTokenPath};
+ const std::vector<std::string> all_filepath_switches_ = {
+ kClientAuthTokenPath};
base::ScopedTempDir temp_dir_;
};
-TEST_F(BlimpEngineConfigTest, ClientTokenCorrect) {
+TEST_F(BlimpEngineConfigTest, ClientAuthTokenCorrect) {
auto cmd_line = CreateCommandLine(all_filepath_switches_);
auto engine_config = BlimpEngineConfig::Create(cmd_line);
EXPECT_NE(nullptr, engine_config);
- EXPECT_EQ(kTestClientToken, engine_config->client_token());
+ EXPECT_EQ(kTestClientAuthToken, engine_config->client_auth_token());
}
-TEST_F(BlimpEngineConfigTest, ClientTokenEmpty) {
- RemoveFileForSwitch(kClientTokenPath);
- CreateFileForSwitch(kClientTokenPath, " ");
+TEST_F(BlimpEngineConfigTest, ClientAuthTokenEmpty) {
+ RemoveFileForSwitch(kClientAuthTokenPath);
+ CreateFileForSwitch(kClientAuthTokenPath, " ");
auto cmd_line = CreateCommandLine(all_filepath_switches_);
auto engine_config = BlimpEngineConfig::Create(cmd_line);
EXPECT_EQ(nullptr, engine_config);
« no previous file with comments | « blimp/engine/app/blimp_engine_config.cc ('k') | blimp/engine/browser_tests/blimp_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698