OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
7 | 7 |
8 #include "remoting/host/access_verifier.h" | 8 #include "remoting/host/access_verifier.h" |
9 #include "remoting/host/capturer.h" | 9 #include "remoting/host/capturer.h" |
10 #include "remoting/host/curtain.h" | 10 #include "remoting/host/curtain.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 private: | 89 private: |
90 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); | 90 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); |
91 }; | 91 }; |
92 | 92 |
93 class MockClientSessionEventHandler : public ClientSession::EventHandler { | 93 class MockClientSessionEventHandler : public ClientSession::EventHandler { |
94 public: | 94 public: |
95 MockClientSessionEventHandler(); | 95 MockClientSessionEventHandler(); |
96 virtual ~MockClientSessionEventHandler(); | 96 virtual ~MockClientSessionEventHandler(); |
97 | 97 |
98 MOCK_METHOD1(OnAuthenticationComplete, | 98 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); |
99 void(scoped_refptr<protocol::ConnectionToClient>)); | 99 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); |
100 | 100 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client)); |
| 101 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, |
| 102 int64 sequence_number)); |
101 private: | 103 private: |
102 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 104 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
103 }; | 105 }; |
104 | 106 |
105 class MockEventExecutor : public EventExecutor { | 107 class MockEventExecutor : public EventExecutor { |
106 public: | 108 public: |
107 MockEventExecutor(); | 109 MockEventExecutor(); |
108 virtual ~MockEventExecutor(); | 110 virtual ~MockEventExecutor(); |
109 | 111 |
110 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); | 112 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); |
(...skipping 23 matching lines...) Expand all Loading... |
134 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid, | 136 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid, |
135 const std::string& token)); | 137 const std::string& token)); |
136 | 138 |
137 private: | 139 private: |
138 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier); | 140 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier); |
139 }; | 141 }; |
140 | 142 |
141 } // namespace remoting | 143 } // namespace remoting |
142 | 144 |
143 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 145 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |