| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "remoting/proto/internal.pb.h" | 8 #include "remoting/proto/internal.pb.h" |
| 9 #include "remoting/protocol/client_stub.h" | 9 #include "remoting/protocol/client_stub.h" |
| 10 #include "remoting/protocol/connection_to_client.h" | 10 #include "remoting/protocol/connection_to_client.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 class MockConnectionToClientEventHandler : | 40 class MockConnectionToClientEventHandler : |
| 41 public ConnectionToClient::EventHandler { | 41 public ConnectionToClient::EventHandler { |
| 42 public: | 42 public: |
| 43 MockConnectionToClientEventHandler(); | 43 MockConnectionToClientEventHandler(); |
| 44 virtual ~MockConnectionToClientEventHandler(); | 44 virtual ~MockConnectionToClientEventHandler(); |
| 45 | 45 |
| 46 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection)); | 46 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection)); |
| 47 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection)); | 47 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection)); |
| 48 MOCK_METHOD1(OnConnectionFailed, void(ConnectionToClient* connection)); | 48 MOCK_METHOD1(OnConnectionFailed, void(ConnectionToClient* connection)); |
| 49 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection, |
| 50 int64 sequence_number)); |
| 49 | 51 |
| 50 private: | 52 private: |
| 51 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); | 53 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 class MockInputStub : public InputStub { | 56 class MockInputStub : public InputStub { |
| 55 public: | 57 public: |
| 56 MockInputStub(); | 58 MockInputStub(); |
| 57 virtual ~MockInputStub(); | 59 virtual ~MockInputStub(); |
| 58 | 60 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 MOCK_METHOD1(Close, void(Task* closed_task)); | 129 MOCK_METHOD1(Close, void(Task* closed_task)); |
| 128 | 130 |
| 129 private: | 131 private: |
| 130 DISALLOW_COPY_AND_ASSIGN(MockSession); | 132 DISALLOW_COPY_AND_ASSIGN(MockSession); |
| 131 }; | 133 }; |
| 132 | 134 |
| 133 } // namespace protocol | 135 } // namespace protocol |
| 134 } // namespace remoting | 136 } // namespace remoting |
| 135 | 137 |
| 136 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 138 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |