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

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 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/host/client_session.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | 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_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"
9 #include "remoting/host/capturer.h" 8 #include "remoting/host/capturer.h"
10 #include "remoting/host/curtain.h" 9 #include "remoting/host/curtain.h"
11 #include "remoting/host/chromoting_host_context.h" 10 #include "remoting/host/chromoting_host_context.h"
12 #include "remoting/host/client_session.h" 11 #include "remoting/host/client_session.h"
13 #include "remoting/host/continue_window.h" 12 #include "remoting/host/continue_window.h"
14 #include "remoting/host/disconnect_window.h" 13 #include "remoting/host/disconnect_window.h"
15 #include "remoting/host/event_executor.h" 14 #include "remoting/host/event_executor.h"
16 #include "remoting/host/local_input_monitor.h" 15 #include "remoting/host/local_input_monitor.h"
17 #include "remoting/host/user_authenticator.h" 16 #include "remoting/host/user_authenticator.h"
18 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 private: 91 private:
93 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); 92 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext);
94 }; 93 };
95 94
96 class MockClientSessionEventHandler : public ClientSession::EventHandler { 95 class MockClientSessionEventHandler : public ClientSession::EventHandler {
97 public: 96 public:
98 MockClientSessionEventHandler(); 97 MockClientSessionEventHandler();
99 virtual ~MockClientSessionEventHandler(); 98 virtual ~MockClientSessionEventHandler();
100 99
101 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); 100 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client));
101 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client));
102 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); 102 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client));
103 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client)); 103 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client));
104 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, 104 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client,
105 int64 sequence_number)); 105 int64 sequence_number));
106 private: 106 private:
107 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); 107 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler);
108 }; 108 };
109 109
110 class MockEventExecutor : public EventExecutor { 110 class MockEventExecutor : public EventExecutor {
111 public: 111 public:
(...skipping 12 matching lines...) Expand all
124 MockUserAuthenticator(); 124 MockUserAuthenticator();
125 virtual ~MockUserAuthenticator(); 125 virtual ~MockUserAuthenticator();
126 126
127 MOCK_METHOD2(Authenticate, bool(const std::string& username, 127 MOCK_METHOD2(Authenticate, bool(const std::string& username,
128 const std::string& password)); 128 const std::string& password));
129 129
130 private: 130 private:
131 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 131 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
132 }; 132 };
133 133
134 class MockAccessVerifier : public AccessVerifier {
135 public:
136 MockAccessVerifier();
137 virtual ~MockAccessVerifier();
138
139 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid,
140 const std::string& token));
141
142 private:
143 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier);
144 };
145
146 } // namespace remoting 134 } // namespace remoting
147 135
148 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 136 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698