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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 private: | 64 private: |
65 DISALLOW_COPY_AND_ASSIGN(MockInputStub); | 65 DISALLOW_COPY_AND_ASSIGN(MockInputStub); |
66 }; | 66 }; |
67 | 67 |
68 class MockHostStub : public HostStub { | 68 class MockHostStub : public HostStub { |
69 public: | 69 public: |
70 MockHostStub(); | 70 MockHostStub(); |
71 ~MockHostStub(); | 71 ~MockHostStub(); |
72 | 72 |
73 MOCK_METHOD2(SuggestResolution, void(const SuggestResolutionRequest* msg, | |
74 Task* done)); | |
75 MOCK_METHOD2(BeginSessionRequest, | 73 MOCK_METHOD2(BeginSessionRequest, |
76 void(const LocalLoginCredentials* credentials, Task* done)); | 74 void(const LocalLoginCredentials* credentials, Task* done)); |
77 | 75 |
78 private: | 76 private: |
79 DISALLOW_COPY_AND_ASSIGN(MockHostStub); | 77 DISALLOW_COPY_AND_ASSIGN(MockHostStub); |
80 }; | 78 }; |
81 | 79 |
82 class MockClientStub : public ClientStub { | 80 class MockClientStub : public ClientStub { |
83 public: | 81 public: |
84 MockClientStub(); | 82 MockClientStub(); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 MOCK_METHOD0(Close, void()); | 131 MOCK_METHOD0(Close, void()); |
134 | 132 |
135 private: | 133 private: |
136 DISALLOW_COPY_AND_ASSIGN(MockSession); | 134 DISALLOW_COPY_AND_ASSIGN(MockSession); |
137 }; | 135 }; |
138 | 136 |
139 } // namespace protocol | 137 } // namespace protocol |
140 } // namespace remoting | 138 } // namespace remoting |
141 | 139 |
142 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 140 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |