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

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

Issue 10808094: Always use chromium threads for IO in remoting host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/heartbeat_sender.cc ('k') | remoting/host/host_port_allocator.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) 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/video_frame_capturer.h" 9 #include "remoting/host/video_frame_capturer.h"
10 #include "remoting/host/chromoting_host_context.h" 10 #include "remoting/host/chromoting_host_context.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 MOCK_METHOD0(Hide, void()); 80 MOCK_METHOD0(Hide, void());
81 }; 81 };
82 82
83 class MockChromotingHostContext : public ChromotingHostContext { 83 class MockChromotingHostContext : public ChromotingHostContext {
84 public: 84 public:
85 MockChromotingHostContext(); 85 MockChromotingHostContext();
86 virtual ~MockChromotingHostContext(); 86 virtual ~MockChromotingHostContext();
87 87
88 MOCK_METHOD0(Start, bool()); 88 MOCK_METHOD0(Start, bool());
89 MOCK_METHOD0(Stop, void()); 89 MOCK_METHOD0(Stop, void());
90 MOCK_METHOD0(jingle_thread, JingleThread*());
91 MOCK_METHOD0(ui_task_runner, base::SingleThreadTaskRunner*()); 90 MOCK_METHOD0(ui_task_runner, base::SingleThreadTaskRunner*());
92 MOCK_METHOD0(capture_task_runner, base::SingleThreadTaskRunner*()); 91 MOCK_METHOD0(capture_task_runner, base::SingleThreadTaskRunner*());
93 MOCK_METHOD0(encode_task_runner, base::SingleThreadTaskRunner*()); 92 MOCK_METHOD0(encode_task_runner, base::SingleThreadTaskRunner*());
94 MOCK_METHOD0(network_task_runner, base::SingleThreadTaskRunner*()); 93 MOCK_METHOD0(network_task_runner, base::SingleThreadTaskRunner*());
95 MOCK_METHOD0(io_task_runner, base::SingleThreadTaskRunner*()); 94 MOCK_METHOD0(io_task_runner, base::SingleThreadTaskRunner*());
96 95
97 private: 96 private:
98 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext); 97 DISALLOW_COPY_AND_ASSIGN(MockChromotingHostContext);
99 }; 98 };
100 99
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 MOCK_METHOD2(Authenticate, bool(const std::string& username, 160 MOCK_METHOD2(Authenticate, bool(const std::string& username,
162 const std::string& password)); 161 const std::string& password));
163 162
164 private: 163 private:
165 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 164 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
166 }; 165 };
167 166
168 } // namespace remoting 167 } // namespace remoting
169 168
170 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 169 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/heartbeat_sender.cc ('k') | remoting/host/host_port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698