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

Side by Side Diff: remoting/host/host_mock_objects.h

Issue 8662001: Remove AccessVerifier interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
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_HOST_HOST_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_
6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_
7 7
8 #include "remoting/host/access_verifier.h" 8 #include "remoting/host/access_verifier.h"
9 #include "remoting/host/capturer.h" 9 #include "remoting/host/capturer.h"
10 #include "remoting/host/curtain.h" 10 #include "remoting/host/curtain.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 private: 90 private:
91 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); 91 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext);
92 }; 92 };
93 93
94 class MockClientSessionEventHandler : public ClientSession::EventHandler { 94 class MockClientSessionEventHandler : public ClientSession::EventHandler {
95 public: 95 public:
96 MockClientSessionEventHandler(); 96 MockClientSessionEventHandler();
97 virtual ~MockClientSessionEventHandler(); 97 virtual ~MockClientSessionEventHandler();
98 98
99 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); 99 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client));
100 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client));
100 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); 101 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client));
101 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client)); 102 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client));
102 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, 103 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client,
103 int64 sequence_number)); 104 int64 sequence_number));
104 private: 105 private:
105 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); 106 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler);
106 }; 107 };
107 108
108 class MockEventExecutor : public EventExecutor { 109 class MockEventExecutor : public EventExecutor {
109 public: 110 public:
(...skipping 17 matching lines...) Expand all
127 128
128 private: 129 private:
129 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 130 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
130 }; 131 };
131 132
132 class MockAccessVerifier : public AccessVerifier { 133 class MockAccessVerifier : public AccessVerifier {
133 public: 134 public:
134 MockAccessVerifier(); 135 MockAccessVerifier();
135 virtual ~MockAccessVerifier(); 136 virtual ~MockAccessVerifier();
136 137
137 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid, 138 MOCK_METHOD1(VerifyPermissions, bool(const std::string& client_jid));
138 const std::string& token));
139 139
140 private: 140 private:
141 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier); 141 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier);
142 }; 142 };
143 143
144 } // namespace remoting 144 } // namespace remoting
145 145
146 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 146 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698