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

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

Issue 2092483002: Provide access to the ID for the remoted Windows session in the network process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rsk_main
Patch Set: Addressing CR Feedback Created 4 years, 6 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
« no previous file with comments | « remoting/host/fake_desktop_environment.cc ('k') | remoting/host/ipc_desktop_environment.h » ('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 <cstdint>
9 #include <memory>
8 #include <string> 10 #include <string>
9 11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "net/base/ip_endpoint.h" 13 #include "net/base/ip_endpoint.h"
12 #include "remoting/codec/video_encoder.h" 14 #include "remoting/codec/video_encoder.h"
13 #include "remoting/host/chromoting_host_context.h" 15 #include "remoting/host/chromoting_host_context.h"
14 #include "remoting/host/client_session.h" 16 #include "remoting/host/client_session.h"
15 #include "remoting/host/client_session_control.h" 17 #include "remoting/host/client_session_control.h"
16 #include "remoting/host/desktop_environment.h" 18 #include "remoting/host/desktop_environment.h"
17 #include "remoting/host/host_status_observer.h" 19 #include "remoting/host/host_status_observer.h"
(...skipping 18 matching lines...) Expand all
36 MockDesktopEnvironment(); 38 MockDesktopEnvironment();
37 ~MockDesktopEnvironment() override; 39 ~MockDesktopEnvironment() override;
38 40
39 MOCK_METHOD0(CreateAudioCapturerPtr, AudioCapturer*()); 41 MOCK_METHOD0(CreateAudioCapturerPtr, AudioCapturer*());
40 MOCK_METHOD0(CreateInputInjectorPtr, InputInjector*()); 42 MOCK_METHOD0(CreateInputInjectorPtr, InputInjector*());
41 MOCK_METHOD0(CreateScreenControlsPtr, ScreenControls*()); 43 MOCK_METHOD0(CreateScreenControlsPtr, ScreenControls*());
42 MOCK_METHOD0(CreateVideoCapturerPtr, webrtc::DesktopCapturer*()); 44 MOCK_METHOD0(CreateVideoCapturerPtr, webrtc::DesktopCapturer*());
43 MOCK_METHOD0(CreateMouseCursorMonitorPtr, webrtc::MouseCursorMonitor*()); 45 MOCK_METHOD0(CreateMouseCursorMonitorPtr, webrtc::MouseCursorMonitor*());
44 MOCK_CONST_METHOD0(GetCapabilities, std::string()); 46 MOCK_CONST_METHOD0(GetCapabilities, std::string());
45 MOCK_METHOD1(SetCapabilities, void(const std::string&)); 47 MOCK_METHOD1(SetCapabilities, void(const std::string&));
48 MOCK_CONST_METHOD0(GetDesktopSessionId, uint32_t());
46 49
47 // DesktopEnvironment implementation. 50 // DesktopEnvironment implementation.
48 std::unique_ptr<AudioCapturer> CreateAudioCapturer() override; 51 std::unique_ptr<AudioCapturer> CreateAudioCapturer() override;
49 std::unique_ptr<InputInjector> CreateInputInjector() override; 52 std::unique_ptr<InputInjector> CreateInputInjector() override;
50 std::unique_ptr<ScreenControls> CreateScreenControls() override; 53 std::unique_ptr<ScreenControls> CreateScreenControls() override;
51 std::unique_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() override; 54 std::unique_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() override;
52 std::unique_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor() 55 std::unique_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor()
53 override; 56 override;
54 }; 57 };
55 58
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); 173 MOCK_METHOD2(Init, void(Callback* callback, Mode mode));
171 MOCK_METHOD0(Capture, void()); 174 MOCK_METHOD0(Capture, void());
172 175
173 private: 176 private:
174 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); 177 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor);
175 }; 178 };
176 179
177 } // namespace remoting 180 } // namespace remoting
178 181
179 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 182 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/fake_desktop_environment.cc ('k') | remoting/host/ipc_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698