Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: remoting/protocol/protocol_mock_objects.h

Issue 6711033: A new authenticated connection evicts an old one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« remoting/protocol/host_stub.h ('K') | « remoting/protocol/host_stub.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« remoting/protocol/host_stub.h ('K') | « remoting/protocol/host_stub.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698