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

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

Issue 6724033: Remove authenticated_ fields from stubs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer's comments. Created 9 years, 8 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/host/client_session_unittest.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/capturer.h" 8 #include "remoting/host/capturer.h"
9 #include "remoting/host/curtain.h" 9 #include "remoting/host/curtain.h"
10 #include "remoting/host/chromoting_host_context.h" 10 #include "remoting/host/chromoting_host_context.h"
11 #include "remoting/host/client_session.h"
11 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
12 13
13 namespace remoting { 14 namespace remoting {
14 15
15 class MockCapturer : public Capturer { 16 class MockCapturer : public Capturer {
16 public: 17 public:
17 MockCapturer(); 18 MockCapturer();
18 virtual ~MockCapturer(); 19 virtual ~MockCapturer();
19 20
20 MOCK_METHOD0(ScreenConfigurationChanged, void()); 21 MOCK_METHOD0(ScreenConfigurationChanged, void());
(...skipping 26 matching lines...) Expand all
47 MOCK_METHOD0(Stop, void()); 48 MOCK_METHOD0(Stop, void());
48 MOCK_METHOD0(jingle_thread, JingleThread*()); 49 MOCK_METHOD0(jingle_thread, JingleThread*());
49 MOCK_METHOD0(main_message_loop, MessageLoop*()); 50 MOCK_METHOD0(main_message_loop, MessageLoop*());
50 MOCK_METHOD0(encode_message_loop, MessageLoop*()); 51 MOCK_METHOD0(encode_message_loop, MessageLoop*());
51 MOCK_METHOD0(network_message_loop, MessageLoop*()); 52 MOCK_METHOD0(network_message_loop, MessageLoop*());
52 53
53 private: 54 private:
54 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); 55 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext);
55 }; 56 };
56 57
58 class MockClientSessionEventHandler : public ClientSession::EventHandler {
59 public:
60 MockClientSessionEventHandler();
61 virtual ~MockClientSessionEventHandler();
62
63 MOCK_METHOD1(LocalLoginSucceeded,
64 void(scoped_refptr<protocol::ConnectionToClient>));
65 MOCK_METHOD1(LocalLoginFailed,
66 void(scoped_refptr<protocol::ConnectionToClient>));
67
68 private:
69 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler);
70 };
71
57 } // namespace remoting 72 } // namespace remoting
58 73
59 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 74 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698