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

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

Issue 11583023: Give DisconnectWindow some TLC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace DisconnectCallback with base::Closure Created 8 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/disconnect_window_win.cc ('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) 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/base/capture_data.h" 9 #include "remoting/base/capture_data.h"
10 #include "remoting/host/video_frame_capturer.h" 10 #include "remoting/host/video_frame_capturer.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 private: 53 private:
54 DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturerDelegate); 54 DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturerDelegate);
55 }; 55 };
56 56
57 class MockDisconnectWindow : public DisconnectWindow { 57 class MockDisconnectWindow : public DisconnectWindow {
58 public: 58 public:
59 MockDisconnectWindow(); 59 MockDisconnectWindow();
60 virtual ~MockDisconnectWindow(); 60 virtual ~MockDisconnectWindow();
61 61
62 MOCK_METHOD3(Show, bool(const UiStrings& ui_strings, 62 MOCK_METHOD3(Show, bool(const UiStrings& ui_strings,
63 const DisconnectCallback& disconnect_callback, 63 const base::Closure& disconnect_callback,
64 const std::string& username)); 64 const std::string& username));
65 MOCK_METHOD0(Hide, void()); 65 MOCK_METHOD0(Hide, void());
66 }; 66 };
67 67
68 class MockLocalInputMonitor : public LocalInputMonitor { 68 class MockLocalInputMonitor : public LocalInputMonitor {
69 public: 69 public:
70 MockLocalInputMonitor(); 70 MockLocalInputMonitor();
71 virtual ~MockLocalInputMonitor(); 71 virtual ~MockLocalInputMonitor();
72 72
73 MOCK_METHOD2(Start, void(MouseMoveObserver* mouse_move_observer, 73 MOCK_METHOD2(Start, void(MouseMoveObserver* mouse_move_observer,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void(const std::string& jid, 152 void(const std::string& jid,
153 const std::string& channel_name, 153 const std::string& channel_name,
154 const protocol::TransportRoute& route)); 154 const protocol::TransportRoute& route));
155 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login)); 155 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login));
156 MOCK_METHOD0(OnShutdown, void()); 156 MOCK_METHOD0(OnShutdown, void());
157 }; 157 };
158 158
159 } // namespace remoting 159 } // namespace remoting
160 160
161 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 161 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/disconnect_window_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698