| OLD | NEW |
| 1 // Copyright (c) 2011 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 "remoting/host/capturer.h" | 9 #include "remoting/host/capturer.h" |
| 9 #include "remoting/host/curtain.h" | 10 #include "remoting/host/curtain.h" |
| 10 #include "remoting/host/chromoting_host_context.h" | 11 #include "remoting/host/chromoting_host_context.h" |
| 11 #include "remoting/host/client_session.h" | 12 #include "remoting/host/client_session.h" |
| 12 #include "remoting/host/continue_window.h" | 13 #include "remoting/host/continue_window.h" |
| 13 #include "remoting/host/disconnect_window.h" | 14 #include "remoting/host/disconnect_window.h" |
| 14 #include "remoting/host/event_executor.h" | 15 #include "remoting/host/event_executor.h" |
| 15 #include "remoting/host/local_input_monitor.h" | 16 #include "remoting/host/local_input_monitor.h" |
| 16 #include "remoting/host/user_authenticator.h" | 17 #include "remoting/host/user_authenticator.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 public: | 97 public: |
| 97 MockClientSessionEventHandler(); | 98 MockClientSessionEventHandler(); |
| 98 virtual ~MockClientSessionEventHandler(); | 99 virtual ~MockClientSessionEventHandler(); |
| 99 | 100 |
| 100 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); | 101 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); |
| 101 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); | 102 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); |
| 102 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); | 103 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); |
| 103 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client)); | 104 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client)); |
| 104 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, | 105 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, |
| 105 int64 sequence_number)); | 106 int64 sequence_number)); |
| 107 MOCK_METHOD3(OnSessionIpAddress, void(ClientSession* client, |
| 108 const std::string& channel_name, |
| 109 const net::IPEndPoint& end_point)); |
| 110 |
| 106 private: | 111 private: |
| 107 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 112 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
| 108 }; | 113 }; |
| 109 | 114 |
| 110 class MockEventExecutor : public EventExecutor { | 115 class MockEventExecutor : public EventExecutor { |
| 111 public: | 116 public: |
| 112 MockEventExecutor(); | 117 MockEventExecutor(); |
| 113 virtual ~MockEventExecutor(); | 118 virtual ~MockEventExecutor(); |
| 114 | 119 |
| 115 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); | 120 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 127 MOCK_METHOD2(Authenticate, bool(const std::string& username, | 132 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
| 128 const std::string& password)); | 133 const std::string& password)); |
| 129 | 134 |
| 130 private: | 135 private: |
| 131 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); | 136 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
| 132 }; | 137 }; |
| 133 | 138 |
| 134 } // namespace remoting | 139 } // namespace remoting |
| 135 | 140 |
| 136 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 141 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |