| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "remoting/proto/internal.pb.h" | 10 #include "remoting/proto/internal.pb.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 class MockConnectionToClientEventHandler : | 39 class MockConnectionToClientEventHandler : |
| 40 public ConnectionToClient::EventHandler { | 40 public ConnectionToClient::EventHandler { |
| 41 public: | 41 public: |
| 42 MockConnectionToClientEventHandler(); | 42 MockConnectionToClientEventHandler(); |
| 43 virtual ~MockConnectionToClientEventHandler(); | 43 virtual ~MockConnectionToClientEventHandler(); |
| 44 | 44 |
| 45 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection)); | 45 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection)); |
| 46 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection)); | 46 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection)); |
| 47 MOCK_METHOD1(OnConnectionFailed, void(ConnectionToClient* connection)); | 47 MOCK_METHOD2(OnConnectionFailed, void(ConnectionToClient* connection, |
| 48 Session::Error error)); |
| 48 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection, | 49 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection, |
| 49 int64 sequence_number)); | 50 int64 sequence_number)); |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); | 53 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 class MockInputStub : public InputStub { | 56 class MockInputStub : public InputStub { |
| 56 public: | 57 public: |
| 57 MockInputStub(); | 58 MockInputStub(); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 MOCK_METHOD0(Close, void()); | 127 MOCK_METHOD0(Close, void()); |
| 127 | 128 |
| 128 private: | 129 private: |
| 129 DISALLOW_COPY_AND_ASSIGN(MockSession); | 130 DISALLOW_COPY_AND_ASSIGN(MockSession); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace protocol | 133 } // namespace protocol |
| 133 } // namespace remoting | 134 } // namespace remoting |
| 134 | 135 |
| 135 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 136 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |