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

Unified Diff: services/ui/ws/test_utils.h

Issue 2692863009: Remove usage of ws::Display in ws::UserDisplayManager. (Closed)
Patch Set: Fix mash_browser_tests. Created 3 years, 10 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 | « services/ui/ws/display_manager.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.h
diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h
index b6fc6d819f087d2250f837a63ea788dcd32816c4..7e2cb3fecf88aa6e9db0b36e7c29813a692347b1 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -33,6 +33,7 @@
#include "services/ui/ws/window_tree.h"
#include "services/ui/ws/window_tree_binding.h"
#include "ui/display/display.h"
+#include "ui/display/screen_base.h"
#include "ui/display/types/display_constants.h"
namespace ui {
@@ -68,11 +69,10 @@ class TestScreenManager : public display::ScreenManager {
void AddInterfaces(service_manager::InterfaceRegistry* registry) override {}
void Init(display::ScreenManagerDelegate* delegate) override;
void RequestCloseDisplay(int64_t display_id) override {}
- int64_t GetPrimaryDisplayId() const override;
private:
- display::ScreenManagerDelegate* delegate_;
- int64_t primary_display_id_ = display::kInvalidDisplayId;
+ display::ScreenManagerDelegate* delegate_ = nullptr;
+ std::unique_ptr<display::ScreenBase> screen_;
std::set<int64_t> display_ids_;
DISALLOW_COPY_AND_ASSIGN(TestScreenManager);
« no previous file with comments | « services/ui/ws/display_manager.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698