OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
9 #include "remoting/host/chromoting_host_context.h" | 9 #include "remoting/host/chromoting_host_context.h" |
10 #include "remoting/host/client_session.h" | 10 #include "remoting/host/client_session.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 private: | 55 private: |
56 DISALLOW_COPY_AND_ASSIGN(MockClientSessionControl); | 56 DISALLOW_COPY_AND_ASSIGN(MockClientSessionControl); |
57 }; | 57 }; |
58 | 58 |
59 class MockClientSessionEventHandler : public ClientSession::EventHandler { | 59 class MockClientSessionEventHandler : public ClientSession::EventHandler { |
60 public: | 60 public: |
61 MockClientSessionEventHandler(); | 61 MockClientSessionEventHandler(); |
62 virtual ~MockClientSessionEventHandler(); | 62 virtual ~MockClientSessionEventHandler(); |
63 | 63 |
64 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); | 64 MOCK_METHOD1(OnSessionAuthenticated, bool(ClientSession* client)); |
65 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); | 65 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); |
66 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); | 66 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); |
67 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); | 67 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); |
68 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, | 68 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, |
69 int64 sequence_number)); | 69 int64 sequence_number)); |
70 MOCK_METHOD3(OnSessionRouteChange, void( | 70 MOCK_METHOD3(OnSessionRouteChange, void( |
71 ClientSession* client, | 71 ClientSession* client, |
72 const std::string& channel_name, | 72 const std::string& channel_name, |
73 const protocol::TransportRoute& route)); | 73 const protocol::TransportRoute& route)); |
74 | 74 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 void(const std::string& jid, | 122 void(const std::string& jid, |
123 const std::string& channel_name, | 123 const std::string& channel_name, |
124 const protocol::TransportRoute& route)); | 124 const protocol::TransportRoute& route)); |
125 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login)); | 125 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login)); |
126 MOCK_METHOD0(OnShutdown, void()); | 126 MOCK_METHOD0(OnShutdown, void()); |
127 }; | 127 }; |
128 | 128 |
129 } // namespace remoting | 129 } // namespace remoting |
130 | 130 |
131 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 131 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |