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

Unified Diff: blimp/net/engine_authentication_handler_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/net/engine_authentication_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/engine_authentication_handler_unittest.cc
diff --git a/blimp/net/engine_authentication_handler_unittest.cc b/blimp/net/engine_authentication_handler_unittest.cc
index 50433621d80993ef6c16722fe0acf3ee8ba230b5..9b186e1a14e553f264c04fb9ee4ac7336c752aba 100644
--- a/blimp/net/engine_authentication_handler_unittest.cc
+++ b/blimp/net/engine_authentication_handler_unittest.cc
@@ -32,7 +32,7 @@ using testing::SaveArg;
namespace blimp {
namespace {
-const char client_token[] = "valid token";
+const char client_auth_token[] = "valid token";
} // namespace
class EngineAuthenticationHandlerTest : public testing::Test {
@@ -41,7 +41,7 @@ class EngineAuthenticationHandlerTest : public testing::Test {
: runner_(new base::TestMockTimeTaskRunner),
runner_handle_(runner_),
auth_handler_(new EngineAuthenticationHandler(&connection_handler_,
- client_token)),
+ client_auth_token)),
connection_(new testing::StrictMock<MockBlimpConnection>()) {}
~EngineAuthenticationHandlerTest() override {}
@@ -72,7 +72,7 @@ TEST_F(EngineAuthenticationHandlerTest, AuthenticationSucceeds) {
EXPECT_NE(nullptr, incoming_message_processor_);
std::unique_ptr<BlimpMessage> blimp_message =
- CreateStartConnectionMessage(client_token, kProtocolVersion);
+ CreateStartConnectionMessage(client_auth_token, kProtocolVersion);
net::TestCompletionCallback process_message_cb;
incoming_message_processor_->ProcessMessage(std::move(blimp_message),
process_message_cb.callback());
@@ -93,7 +93,7 @@ TEST_F(EngineAuthenticationHandlerTest, ProtocolMismatch) {
auth_handler_->HandleConnection(std::move(connection_));
std::unique_ptr<BlimpMessage> blimp_message =
- CreateStartConnectionMessage(client_token, kInvalidProtocolVersion);
+ CreateStartConnectionMessage(client_auth_token, kInvalidProtocolVersion);
net::TestCompletionCallback process_message_cb;
incoming_message_processor_->ProcessMessage(std::move(blimp_message),
process_message_cb.callback());
@@ -157,7 +157,7 @@ TEST_F(EngineAuthenticationHandlerTest, AuthHandlerDeletedFirst) {
auth_handler_.reset();
std::unique_ptr<BlimpMessage> blimp_message =
- CreateStartConnectionMessage(client_token, kProtocolVersion);
+ CreateStartConnectionMessage(client_auth_token, kProtocolVersion);
net::TestCompletionCallback process_message_cb;
incoming_message_processor_->ProcessMessage(std::move(blimp_message),
process_message_cb.callback());
« no previous file with comments | « blimp/net/engine_authentication_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698