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

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

Issue 2575963002: Handle Security Key requests from outside the remoted session correctly (Closed)
Patch Set: Addressing CR 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
Index: remoting/host/security_key/fake_security_key_ipc_server.cc
diff --git a/remoting/host/security_key/fake_security_key_ipc_server.cc b/remoting/host/security_key/fake_security_key_ipc_server.cc
index e8ed4424e7e40d6e5c40f6ed887c8bab558af5a8..561ed31a61fa30398cc759a04ec3bb38e150fc19 100644
--- a/remoting/host/security_key/fake_security_key_ipc_server.cc
+++ b/remoting/host/security_key/fake_security_key_ipc_server.cc
@@ -99,6 +99,16 @@ bool FakeSecurityKeyIpcServer::SendResponse(const std::string& message_data) {
new ChromotingNetworkToRemoteSecurityKeyMsg_Response(message_data));
}
+void FakeSecurityKeyIpcServer::SendConnectionReadyMessage() {
+ ipc_channel_->Send(
+ new ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionReady());
+}
+
+void FakeSecurityKeyIpcServer::SendInvalidSessionMessage() {
+ ipc_channel_->Send(
+ new ChromotingNetworkToRemoteSecurityKeyMsg_InvalidSession());
+}
+
FakeSecurityKeyIpcServerFactory::FakeSecurityKeyIpcServerFactory() {
SecurityKeyIpcServer::SetFactoryForTest(this);
}

Powered by Google App Engine
This is Rietveld 408576698