| 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/capturer.h" | 9 #include "remoting/host/capturer.h" |
| 10 #include "remoting/host/curtain.h" | 10 #include "remoting/host/curtain.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 public: | 97 public: |
| 98 MockClientSessionEventHandler(); | 98 MockClientSessionEventHandler(); |
| 99 virtual ~MockClientSessionEventHandler(); | 99 virtual ~MockClientSessionEventHandler(); |
| 100 | 100 |
| 101 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); | 101 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); |
| 102 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); | 102 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); |
| 103 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); | 103 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); |
| 104 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client)); | 104 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client)); |
| 105 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, | 105 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, |
| 106 int64 sequence_number)); | 106 int64 sequence_number)); |
| 107 MOCK_METHOD3(OnSessionIpAddress, void(ClientSession* client, | 107 MOCK_METHOD4(OnSessionRouteChange, void( |
| 108 const std::string& channel_name, | 108 ClientSession* client, |
| 109 const net::IPEndPoint& end_point)); | 109 const std::string& channel_name, |
| 110 const net::IPEndPoint& remote_end_point, |
| 111 const net::IPEndPoint& local_end_point)); |
| 110 | 112 |
| 111 private: | 113 private: |
| 112 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 114 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 class MockEventExecutor : public EventExecutor { | 117 class MockEventExecutor : public EventExecutor { |
| 116 public: | 118 public: |
| 117 MockEventExecutor(); | 119 MockEventExecutor(); |
| 118 virtual ~MockEventExecutor(); | 120 virtual ~MockEventExecutor(); |
| 119 | 121 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 132 MOCK_METHOD2(Authenticate, bool(const std::string& username, | 134 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
| 133 const std::string& password)); | 135 const std::string& password)); |
| 134 | 136 |
| 135 private: | 137 private: |
| 136 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); | 138 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
| 137 }; | 139 }; |
| 138 | 140 |
| 139 } // namespace remoting | 141 } // namespace remoting |
| 140 | 142 |
| 141 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 143 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |