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

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

Issue 2663103003: Fixing Intermittent SecurityKey Unittest Failures (Closed)
Patch Set: Fixing some threading issues in the current unit tests. Created 3 years, 11 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
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_;

Powered by Google App Engine
This is Rietveld 408576698