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

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

Issue 7466004: Message validation in message dispatchers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 5 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
« no previous file with comments | « 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 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
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_
OLDNEW
« no previous file with comments | « remoting/protocol/host_stub.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698