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 <string> | 8 #include <string> |
9 | 9 |
10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 public: | 67 public: |
68 MockClientSessionEventHandler(); | 68 MockClientSessionEventHandler(); |
69 virtual ~MockClientSessionEventHandler(); | 69 virtual ~MockClientSessionEventHandler(); |
70 | 70 |
71 MOCK_METHOD1(OnSessionAuthenticating, void(ClientSession* client)); | 71 MOCK_METHOD1(OnSessionAuthenticating, void(ClientSession* client)); |
72 MOCK_METHOD1(OnSessionAuthenticated, bool(ClientSession* client)); | 72 MOCK_METHOD1(OnSessionAuthenticated, bool(ClientSession* client)); |
73 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); | 73 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); |
74 MOCK_METHOD1(OnSessionClientCapabilities, void(ClientSession* client)); | 74 MOCK_METHOD1(OnSessionClientCapabilities, void(ClientSession* client)); |
75 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); | 75 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); |
76 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); | 76 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); |
77 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, | |
78 int64 sequence_number)); | |
79 MOCK_METHOD3(OnSessionRouteChange, void( | 77 MOCK_METHOD3(OnSessionRouteChange, void( |
80 ClientSession* client, | 78 ClientSession* client, |
81 const std::string& channel_name, | 79 const std::string& channel_name, |
82 const protocol::TransportRoute& route)); | 80 const protocol::TransportRoute& route)); |
83 | 81 |
84 private: | 82 private: |
85 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 83 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
86 }; | 84 }; |
87 | 85 |
88 class MockDesktopEnvironmentFactory : public DesktopEnvironmentFactory { | 86 class MockDesktopEnvironmentFactory : public DesktopEnvironmentFactory { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 MOCK_CONST_METHOD2(DeliverHostDataMessage, | 143 MOCK_CONST_METHOD2(DeliverHostDataMessage, |
146 void(int connection_id, const std::string& data)); | 144 void(int connection_id, const std::string& data)); |
147 | 145 |
148 private: | 146 private: |
149 DISALLOW_COPY_AND_ASSIGN(MockGnubbyAuthHandler); | 147 DISALLOW_COPY_AND_ASSIGN(MockGnubbyAuthHandler); |
150 }; | 148 }; |
151 | 149 |
152 } // namespace remoting | 150 } // namespace remoting |
153 | 151 |
154 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 152 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |