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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 private: | 90 private: |
91 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); | 91 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); |
92 }; | 92 }; |
93 | 93 |
94 class MockClientSessionEventHandler : public ClientSession::EventHandler { | 94 class MockClientSessionEventHandler : public ClientSession::EventHandler { |
95 public: | 95 public: |
96 MockClientSessionEventHandler(); | 96 MockClientSessionEventHandler(); |
97 virtual ~MockClientSessionEventHandler(); | 97 virtual ~MockClientSessionEventHandler(); |
98 | 98 |
99 MOCK_METHOD1(OnAuthenticationComplete, | 99 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); |
100 void(scoped_refptr<protocol::ConnectionToClient>)); | 100 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); |
101 | 101 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client)); |
| 102 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, |
| 103 int64 sequence_number)); |
102 private: | 104 private: |
103 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 105 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
104 }; | 106 }; |
105 | 107 |
106 class MockEventExecutor : public EventExecutor { | 108 class MockEventExecutor : public EventExecutor { |
107 public: | 109 public: |
108 MockEventExecutor(); | 110 MockEventExecutor(); |
109 virtual ~MockEventExecutor(); | 111 virtual ~MockEventExecutor(); |
110 | 112 |
111 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); | 113 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); |
(...skipping 23 matching lines...) Expand all Loading... |
135 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid, | 137 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid, |
136 const std::string& token)); | 138 const std::string& token)); |
137 | 139 |
138 private: | 140 private: |
139 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier); | 141 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier); |
140 }; | 142 }; |
141 | 143 |
142 } // namespace remoting | 144 } // namespace remoting |
143 | 145 |
144 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 146 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |