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

Unified Diff: remoting/host/host_mock_objects.h

Issue 6724033: Remove authenticated_ fields from stubs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweak. Created 9 years, 9 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/host_mock_objects.h
diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h
index de1fe7243fbfbc0d0197d278208d169c5c1cbe0b..679c507c82b4a8bbe4464fafe67e4ba0de3635b0 100644
--- a/remoting/host/host_mock_objects.h
+++ b/remoting/host/host_mock_objects.h
@@ -7,6 +7,7 @@
#include "remoting/host/capturer.h"
#include "remoting/host/chromoting_host_context.h"
+#include "remoting/host/client_session.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace remoting {
@@ -46,6 +47,20 @@ class MockChromotingHostContext : public ChromotingHostContext {
DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext);
};
+class MockClientSessionEventHandler : public ClientSession::EventHandler {
+ public:
+ MockClientSessionEventHandler();
+ virtual ~MockClientSessionEventHandler();
+
+ MOCK_METHOD1(LocalLoginSucceeded,
+ void(scoped_refptr<protocol::ConnectionToClient>));
+ MOCK_METHOD1(LocalLoginFailed,
+ void(scoped_refptr<protocol::ConnectionToClient>));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler);
+};
+
} // namespace remoting
#endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_

Powered by Google App Engine
This is Rietveld 408576698