| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 DISALLOW_COPY_AND_ASSIGN(MockInputStub); | 64 DISALLOW_COPY_AND_ASSIGN(MockInputStub); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 class MockHostStub : public HostStub { | 67 class MockHostStub : public HostStub { |
| 68 public: | 68 public: |
| 69 MockHostStub(); | 69 MockHostStub(); |
| 70 ~MockHostStub(); | 70 ~MockHostStub(); |
| 71 | 71 |
| 72 MOCK_METHOD2(BeginSessionRequest, | |
| 73 void(const LocalLoginCredentials* credentials, | |
| 74 const base::Closure& done)); | |
| 75 | |
| 76 private: | 72 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(MockHostStub); | 73 DISALLOW_COPY_AND_ASSIGN(MockHostStub); |
| 78 }; | 74 }; |
| 79 | 75 |
| 80 class MockClientStub : public ClientStub { | 76 class MockClientStub : public ClientStub { |
| 81 public: | 77 public: |
| 82 MockClientStub(); | 78 MockClientStub(); |
| 83 virtual ~MockClientStub(); | 79 virtual ~MockClientStub(); |
| 84 | 80 |
| 85 MOCK_METHOD2(NotifyResolution, void(const NotifyResolutionRequest* msg, | |
| 86 const base::Closure& done)); | |
| 87 MOCK_METHOD2(BeginSessionResponse, void(const LocalLoginStatus* msg, | |
| 88 const base::Closure& done)); | |
| 89 | |
| 90 private: | 81 private: |
| 91 DISALLOW_COPY_AND_ASSIGN(MockClientStub); | 82 DISALLOW_COPY_AND_ASSIGN(MockClientStub); |
| 92 }; | 83 }; |
| 93 | 84 |
| 94 class MockVideoStub : public VideoStub { | 85 class MockVideoStub : public VideoStub { |
| 95 public: | 86 public: |
| 96 MockVideoStub(); | 87 MockVideoStub(); |
| 97 virtual ~MockVideoStub(); | 88 virtual ~MockVideoStub(); |
| 98 | 89 |
| 99 MOCK_METHOD2(ProcessVideoPacket, void(const VideoPacket* video_packet, | 90 MOCK_METHOD2(ProcessVideoPacket, void(const VideoPacket* video_packet, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 MOCK_METHOD0(Close, void()); | 125 MOCK_METHOD0(Close, void()); |
| 135 | 126 |
| 136 private: | 127 private: |
| 137 DISALLOW_COPY_AND_ASSIGN(MockSession); | 128 DISALLOW_COPY_AND_ASSIGN(MockSession); |
| 138 }; | 129 }; |
| 139 | 130 |
| 140 } // namespace protocol | 131 } // namespace protocol |
| 141 } // namespace remoting | 132 } // namespace remoting |
| 142 | 133 |
| 143 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 134 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |