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

Unified Diff: remoting/host/security_key/fake_security_key_ipc_client.h

Issue 2663103003: Fixing Intermittent SecurityKey Unittest Failures (Closed)
Patch Set: Addressing more feedback Created 3 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/base/run_all_unittests.cc ('k') | remoting/host/security_key/fake_security_key_ipc_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/security_key/fake_security_key_ipc_client.h
diff --git a/remoting/host/security_key/fake_security_key_ipc_client.h b/remoting/host/security_key/fake_security_key_ipc_client.h
index b3b9523ebb7a4e44e31ba274568ca6536a94324b..5e314f4f5c2d0d3aa1ef99167ff143aa6c63b832 100644
--- a/remoting/host/security_key/fake_security_key_ipc_client.h
+++ b/remoting/host/security_key/fake_security_key_ipc_client.h
@@ -75,6 +75,10 @@ class FakeSecurityKeyIpcClient : public SecurityKeyIpcClient {
security_key_response_payload_ = response_payload;
}
+ void set_on_channel_connected_callback(const base::Closure& callback) {
+ on_channel_connected_callback_ = callback;
+ }
+
private:
// IPC::Listener implementation.
bool OnMessageReceived(const IPC::Message& message) override;
@@ -93,6 +97,9 @@ class FakeSecurityKeyIpcClient : public SecurityKeyIpcClient {
// Called when a change in the IPC channel state has occurred.
base::Closure channel_event_callback_;
+ // Called when the IPC Channel is connected.
+ base::Closure on_channel_connected_callback_;
+
// Used for sending/receiving security key messages between processes.
std::unique_ptr<IPC::Channel> client_channel_;
« no previous file with comments | « remoting/base/run_all_unittests.cc ('k') | remoting/host/security_key/fake_security_key_ipc_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698