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

Unified Diff: remoting/host/security_key/security_key_message_handler_unittest.cc

Issue 2478443002: Use ChannelMojo for remote security key channels. (Closed)
Patch Set: Created 4 years, 1 month 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/security_key/security_key_message_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/security_key/security_key_message_handler_unittest.cc
diff --git a/remoting/host/security_key/security_key_message_handler_unittest.cc b/remoting/host/security_key/security_key_message_handler_unittest.cc
index e120fb61d97ae83018f5efae1bee81a933d4ce4b..4bf63710d9095f977c09da2eab546f6297365b39 100644
--- a/remoting/host/security_key/security_key_message_handler_unittest.cc
+++ b/remoting/host/security_key/security_key_message_handler_unittest.cc
@@ -116,7 +116,7 @@ void SecurityKeyMessageHandlerTest::OnSecurityKeyMessage(
TEST_F(SecurityKeyMessageHandlerTest,
ProcessConnectMessage_SessionExists_ConnectionAttemptSuccess) {
- ipc_client_weak_ptr_->set_wait_for_ipc_channel_return_value(true);
+ ipc_client_weak_ptr_->set_check_for_ipc_channel_return_value(true);
ipc_client_weak_ptr_->set_establish_ipc_connection_should_succeed(true);
reader_weak_ptr_->message_callback().Run(
@@ -132,7 +132,7 @@ TEST_F(SecurityKeyMessageHandlerTest,
TEST_F(SecurityKeyMessageHandlerTest,
ProcessConnectMessage_SessionExists_WriteFails) {
- ipc_client_weak_ptr_->set_wait_for_ipc_channel_return_value(true);
+ ipc_client_weak_ptr_->set_check_for_ipc_channel_return_value(true);
ipc_client_weak_ptr_->set_establish_ipc_connection_should_succeed(true);
writer_weak_ptr_->set_write_request_succeeded(/*should_succeed=*/false);
@@ -148,7 +148,7 @@ TEST_F(SecurityKeyMessageHandlerTest,
TEST_F(SecurityKeyMessageHandlerTest,
ProcessConnectMessage_SessionExists_ConnectionAttemptFailure) {
- ipc_client_weak_ptr_->set_wait_for_ipc_channel_return_value(true);
+ ipc_client_weak_ptr_->set_check_for_ipc_channel_return_value(true);
ipc_client_weak_ptr_->set_establish_ipc_connection_should_succeed(false);
reader_weak_ptr_->message_callback().Run(
@@ -162,7 +162,7 @@ TEST_F(SecurityKeyMessageHandlerTest,
}
TEST_F(SecurityKeyMessageHandlerTest, ProcessConnectMessage_NoSessionExists) {
- ipc_client_weak_ptr_->set_wait_for_ipc_channel_return_value(false);
+ ipc_client_weak_ptr_->set_check_for_ipc_channel_return_value(false);
ipc_client_weak_ptr_->set_establish_ipc_connection_should_succeed(false);
reader_weak_ptr_->message_callback().Run(
@@ -177,7 +177,7 @@ TEST_F(SecurityKeyMessageHandlerTest, ProcessConnectMessage_NoSessionExists) {
}
TEST_F(SecurityKeyMessageHandlerTest, ProcessConnectMessage_IncorrectPayload) {
- ipc_client_weak_ptr_->set_wait_for_ipc_channel_return_value(true);
+ ipc_client_weak_ptr_->set_check_for_ipc_channel_return_value(true);
ipc_client_weak_ptr_->set_establish_ipc_connection_should_succeed(false);
reader_weak_ptr_->message_callback().Run(
« no previous file with comments | « remoting/host/security_key/security_key_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698