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

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

Issue 10384127: Chromoting: the Me2me host now presents a notification on the console allowing a user to disconnect… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Unix-line endings. The license text. Created 8 years, 7 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/disconnect_window_win.cc ('k') | remoting/host/host_ui.rc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/base/ip_endpoint.h" 8 #include "net/base/ip_endpoint.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual ~MockCurtain(); 46 virtual ~MockCurtain();
47 47
48 MOCK_METHOD1(EnableCurtainMode, void(bool enable)); 48 MOCK_METHOD1(EnableCurtainMode, void(bool enable));
49 }; 49 };
50 50
51 class MockDisconnectWindow : public DisconnectWindow { 51 class MockDisconnectWindow : public DisconnectWindow {
52 public: 52 public:
53 MockDisconnectWindow(); 53 MockDisconnectWindow();
54 virtual ~MockDisconnectWindow(); 54 virtual ~MockDisconnectWindow();
55 55
56 MOCK_METHOD2(Show, void(remoting::ChromotingHost* host, 56 MOCK_METHOD3(Show, void(remoting::ChromotingHost* host,
57 const DisconnectCallback& disconnect_callback,
57 const std::string& username)); 58 const std::string& username));
58 MOCK_METHOD0(Hide, void()); 59 MOCK_METHOD0(Hide, void());
59 }; 60 };
60 61
61 class MockLocalInputMonitor : public LocalInputMonitor { 62 class MockLocalInputMonitor : public LocalInputMonitor {
62 public: 63 public:
63 MockLocalInputMonitor(); 64 MockLocalInputMonitor();
64 virtual ~MockLocalInputMonitor(); 65 virtual ~MockLocalInputMonitor();
65 66
66 MOCK_METHOD1(Start, void(remoting::ChromotingHost* host)); 67 MOCK_METHOD1(Start, void(remoting::ChromotingHost* host));
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 MOCK_METHOD2(Authenticate, bool(const std::string& username, 141 MOCK_METHOD2(Authenticate, bool(const std::string& username,
141 const std::string& password)); 142 const std::string& password));
142 143
143 private: 144 private:
144 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 145 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
145 }; 146 };
146 147
147 } // namespace remoting 148 } // namespace remoting
148 149
149 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 150 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/disconnect_window_win.cc ('k') | remoting/host/host_ui.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698