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

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

Issue 8624009: Refactor ContinueWindow::Show() to accept a callback parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac compile 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 MOCK_METHOD1(Start, void(remoting::ChromotingHost* host)); 64 MOCK_METHOD1(Start, void(remoting::ChromotingHost* host));
65 MOCK_METHOD0(Stop, void()); 65 MOCK_METHOD0(Stop, void());
66 }; 66 };
67 67
68 class MockContinueWindow : public ContinueWindow { 68 class MockContinueWindow : public ContinueWindow {
69 public: 69 public:
70 MockContinueWindow(); 70 MockContinueWindow();
71 virtual ~MockContinueWindow(); 71 virtual ~MockContinueWindow();
72 72
73 MOCK_METHOD1(Show, void(remoting::ChromotingHost* host)); 73 MOCK_METHOD2(Show, void(
74 remoting::ChromotingHost* host,
75 const remoting::ContinueWindow::ContinueSessionCallback& callback));
74 MOCK_METHOD0(Hide, void()); 76 MOCK_METHOD0(Hide, void());
75 }; 77 };
76 78
77 class MockChromotingHostContext : public ChromotingHostContext { 79 class MockChromotingHostContext : public ChromotingHostContext {
78 public: 80 public:
79 MockChromotingHostContext(); 81 MockChromotingHostContext();
80 virtual ~MockChromotingHostContext(); 82 virtual ~MockChromotingHostContext();
81 83
82 MOCK_METHOD0(Start, void()); 84 MOCK_METHOD0(Start, void());
83 MOCK_METHOD0(Stop, void()); 85 MOCK_METHOD0(Stop, void());
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid, 139 MOCK_METHOD2(VerifyPermissions, bool(const std::string& client_jid,
138 const std::string& token)); 140 const std::string& token));
139 141
140 private: 142 private:
141 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier); 143 DISALLOW_COPY_AND_ASSIGN(MockAccessVerifier);
142 }; 144 };
143 145
144 } // namespace remoting 146 } // namespace remoting
145 147
146 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 148 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« remoting/host/desktop_environment.cc ('K') | « remoting/host/desktop_environment.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698