| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_PROTOCOL_MOCK_OBJECTS_H_ |
| 6 #define REMOTING_PROTOCOL_MOCK_OBJECTS_H_ | 6 #define REMOTING_PROTOCOL_MOCK_OBJECTS_H_ |
| 7 | 7 |
| 8 #include "remoting/proto/internal.pb.h" | 8 #include "remoting/proto/internal.pb.h" |
| 9 #include "remoting/protocol/connection_to_client.h" | 9 #include "remoting/protocol/connection_to_client.h" |
| 10 #include "remoting/protocol/host_stub.h" | 10 #include "remoting/protocol/host_stub.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClient); | 30 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClient); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 class MockConnectionToClientEventHandler : | 33 class MockConnectionToClientEventHandler : |
| 34 public ConnectionToClient::EventHandler { | 34 public ConnectionToClient::EventHandler { |
| 35 public: | 35 public: |
| 36 MockConnectionToClientEventHandler() {} | 36 MockConnectionToClientEventHandler() {} |
| 37 | 37 |
| 38 MOCK_METHOD2(HandleMessage, | |
| 39 void(ConnectionToClient* viewer, | |
| 40 ChromotingClientMessage* message)); | |
| 41 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection)); | 38 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection)); |
| 42 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection)); | 39 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection)); |
| 43 MOCK_METHOD1(OnConnectionFailed, void(ConnectionToClient* connection)); | 40 MOCK_METHOD1(OnConnectionFailed, void(ConnectionToClient* connection)); |
| 44 | 41 |
| 45 private: | 42 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); | 43 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); |
| 47 }; | 44 }; |
| 48 | 45 |
| 49 class MockInputStub : public InputStub { | 46 class MockInputStub : public InputStub { |
| 50 public: | 47 public: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 77 MOCK_METHOD0(GetPendingPackets, int()); | 74 MOCK_METHOD0(GetPendingPackets, int()); |
| 78 | 75 |
| 79 private: | 76 private: |
| 80 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); | 77 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); |
| 81 }; | 78 }; |
| 82 | 79 |
| 83 } // namespace protocol | 80 } // namespace protocol |
| 84 } // namespace remoting | 81 } // namespace remoting |
| 85 | 82 |
| 86 #endif // REMOTING_PROTOCOL_MOCK_OBJECTS_H_ | 83 #endif // REMOTING_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |