| 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_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| 6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 6 #define REMOTING_PROTOCOL_PROTOCOL_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 public: | 44 public: |
| 45 MockConnectionToClientEventHandler(); | 45 MockConnectionToClientEventHandler(); |
| 46 virtual ~MockConnectionToClientEventHandler(); | 46 virtual ~MockConnectionToClientEventHandler(); |
| 47 | 47 |
| 48 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection)); | 48 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection)); |
| 49 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection)); | 49 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection)); |
| 50 MOCK_METHOD2(OnConnectionFailed, void(ConnectionToClient* connection, | 50 MOCK_METHOD2(OnConnectionFailed, void(ConnectionToClient* connection, |
| 51 ErrorCode error)); | 51 ErrorCode error)); |
| 52 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection, | 52 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection, |
| 53 int64 sequence_number)); | 53 int64 sequence_number)); |
| 54 MOCK_METHOD4(OnRouteChange, void( | 54 MOCK_METHOD3(OnRouteChange, void(ConnectionToClient* connection, |
| 55 ConnectionToClient* connection, | 55 const std::string& channel_name, |
| 56 const std::string& channel_name, | 56 const TransportRoute& route)); |
| 57 const net::IPEndPoint& remote_end_point, | |
| 58 const net::IPEndPoint& local_end_point)); | |
| 59 | 57 |
| 60 private: | 58 private: |
| 61 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); | 59 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); |
| 62 }; | 60 }; |
| 63 | 61 |
| 64 class MockClipboardStub : public ClipboardStub { | 62 class MockClipboardStub : public ClipboardStub { |
| 65 public: | 63 public: |
| 66 MockClipboardStub(); | 64 MockClipboardStub(); |
| 67 virtual ~MockClipboardStub(); | 65 virtual ~MockClipboardStub(); |
| 68 | 66 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 MOCK_METHOD0(Close, void()); | 159 MOCK_METHOD0(Close, void()); |
| 162 | 160 |
| 163 private: | 161 private: |
| 164 DISALLOW_COPY_AND_ASSIGN(MockSession); | 162 DISALLOW_COPY_AND_ASSIGN(MockSession); |
| 165 }; | 163 }; |
| 166 | 164 |
| 167 } // namespace protocol | 165 } // namespace protocol |
| 168 } // namespace remoting | 166 } // namespace remoting |
| 169 | 167 |
| 170 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 168 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |