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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 private: | 52 private: |
53 DISALLOW_COPY_AND_ASSIGN(MockInputStub); | 53 DISALLOW_COPY_AND_ASSIGN(MockInputStub); |
54 }; | 54 }; |
55 | 55 |
56 class MockHostStub : public HostStub { | 56 class MockHostStub : public HostStub { |
57 public: | 57 public: |
58 MockHostStub() {} | 58 MockHostStub() {} |
59 | 59 |
60 MOCK_METHOD2(SuggestResolution, void(const SuggestResolutionRequest* msg, | 60 MOCK_METHOD2(SuggestResolution, void(const SuggestResolutionRequest* msg, |
61 Task* done)); | 61 Task* done)); |
| 62 MOCK_METHOD2(BeginSessionRequest, |
| 63 void(const LocalLoginCredentials* credentials, Task* done)); |
62 | 64 |
63 private: | 65 private: |
64 DISALLOW_COPY_AND_ASSIGN(MockHostStub); | 66 DISALLOW_COPY_AND_ASSIGN(MockHostStub); |
65 }; | 67 }; |
66 | 68 |
67 class MockVideoStub : public VideoStub { | 69 class MockVideoStub : public VideoStub { |
68 public: | 70 public: |
69 MockVideoStub() {} | 71 MockVideoStub() {} |
70 | 72 |
71 MOCK_METHOD2(ProcessVideoPacket, void(const VideoPacket* video_packet, | 73 MOCK_METHOD2(ProcessVideoPacket, void(const VideoPacket* video_packet, |
72 Task* done)); | 74 Task* done)); |
73 MOCK_METHOD0(GetPendingPackets, int()); | 75 MOCK_METHOD0(GetPendingPackets, int()); |
74 | 76 |
75 private: | 77 private: |
76 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); | 78 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); |
77 }; | 79 }; |
78 | 80 |
79 } // namespace protocol | 81 } // namespace protocol |
80 } // namespace remoting | 82 } // namespace remoting |
81 | 83 |
82 #endif // REMOTING_PROTOCOL_MOCK_OBJECTS_H_ | 84 #endif // REMOTING_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |