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

Unified Diff: remoting/host/host_mock_objects.h

Issue 2091553002: Expose ClientSession details to Host Extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@desktop_environment
Patch Set: Adressing 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/host_extension_session_manager_unittest.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_mock_objects.h
diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h
index 7b2409258f7fc71a1b1734f7415ba62e0d907aa0..a1e00ffba271ae8dfdf74de50fcda46d13bb1fe9 100644
--- a/remoting/host/host_mock_objects.h
+++ b/remoting/host/host_mock_objects.h
@@ -11,10 +11,10 @@
#include "base/macros.h"
#include "net/base/ip_endpoint.h"
-#include "remoting/codec/video_encoder.h"
#include "remoting/host/chromoting_host_context.h"
#include "remoting/host/client_session.h"
#include "remoting/host/client_session_control.h"
+#include "remoting/host/client_session_details.h"
#include "remoting/host/desktop_environment.h"
#include "remoting/host/host_status_observer.h"
#include "remoting/host/input_injector.h"
@@ -71,6 +71,18 @@ class MockClientSessionControl : public ClientSessionControl {
DISALLOW_COPY_AND_ASSIGN(MockClientSessionControl);
};
+class MockClientSessionDetails : public ClientSessionDetails {
+ public:
+ MockClientSessionDetails();
+ ~MockClientSessionDetails() override;
+
+ MOCK_METHOD0(session_control, ClientSessionControl*());
+ MOCK_CONST_METHOD0(desktop_session_id, uint32_t());
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockClientSessionDetails);
+};
+
class MockClientSessionEventHandler : public ClientSession::EventHandler {
public:
MockClientSessionEventHandler();
« no previous file with comments | « remoting/host/host_extension_session_manager_unittest.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698