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