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

Unified Diff: ash/wm/panels/panel_layout_manager_unittest.cc

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/panels/panel_layout_manager_unittest.cc
diff --git a/ash/wm/panels/panel_layout_manager_unittest.cc b/ash/wm/panels/panel_layout_manager_unittest.cc
index f7626e4b6d9a58892c9e33d445f4b9fccb0e21ad..360fb9286c78b6a6b1dc98f26443c6be03da339d 100644
--- a/ash/wm/panels/panel_layout_manager_unittest.cc
+++ b/ash/wm/panels/panel_layout_manager_unittest.cc
@@ -6,7 +6,6 @@
#include "ash/aura/wm_window_aura.h"
#include "ash/common/ash_switches.h"
-#include "ash/common/display/display_info.h"
#include "ash/common/shelf/shelf_button.h"
#include "ash/common/shelf/shelf_layout_manager.h"
#include "ash/common/shelf/shelf_model.h"
@@ -40,6 +39,7 @@
#include "ui/aura/test/test_windows.h"
#include "ui/aura/window.h"
#include "ui/aura/window_event_dispatcher.h"
+#include "ui/display/manager/managed_display_info.h"
#include "ui/events/event_utils.h"
#include "ui/events/test/event_generator.h"
#include "ui/views/widget/widget.h"
@@ -52,8 +52,8 @@ std::string ToDisplayName(int64_t id) {
return "x-" + base::Int64ToString(id);
}
-DisplayInfo CreateDisplayInfo(int64_t id, const gfx::Rect& bounds) {
- DisplayInfo info(id, ToDisplayName(id), false);
+ui::ManagedDisplayInfo CreateDisplayInfo(int64_t id, const gfx::Rect& bounds) {
+ ui::ManagedDisplayInfo info(id, ToDisplayName(id), false);
info.SetBounds(bounds);
return info;
}
@@ -312,16 +312,16 @@ TEST_P(PanelLayoutManagerTextDirectionTest, AddOnePanel) {
// Tests for crashes during undocking.
// See https://crbug.com/632755
TEST_F(PanelLayoutManagerTest, UndockTest) {
- std::vector<DisplayInfo> info_list;
+ std::vector<ui::ManagedDisplayInfo> info_list;
const int64_t internal_display_id =
test::DisplayManagerTestApi().SetFirstDisplayAsInternalDisplay();
// Create the primary display info.
- DisplayInfo internal_display =
+ ui::ManagedDisplayInfo internal_display =
CreateDisplayInfo(internal_display_id, gfx::Rect(0, 0, 1280, 720));
// Create the secondary external display info. This will be docked display.
- DisplayInfo external_display_info =
+ ui::ManagedDisplayInfo external_display_info =
CreateDisplayInfo(2, gfx::Rect(0, 0, 1920, 1080));
info_list.push_back(external_display_info);
@@ -342,13 +342,13 @@ TEST_F(PanelLayoutManagerTest, UndockTest) {
// Tests for any crash during docking and then undocking.
// See https://crbug.com/632755
TEST_F(PanelLayoutManagerTest, DockUndockTest) {
- std::vector<DisplayInfo> info_list;
+ std::vector<ui::ManagedDisplayInfo> info_list;
const int64_t internal_display_id =
test::DisplayManagerTestApi().SetFirstDisplayAsInternalDisplay();
// Create the primary display info.
- DisplayInfo internal_display =
+ ui::ManagedDisplayInfo internal_display =
CreateDisplayInfo(internal_display_id, gfx::Rect(0, 0, 1280, 720));
info_list.push_back(internal_display);
@@ -359,7 +359,7 @@ TEST_F(PanelLayoutManagerTest, DockUndockTest) {
CreatePanelWindow(gfx::Rect(600, 200, 50, 50)));
// Create the secondary external display info. This will be docked display.
- DisplayInfo external_display_info =
+ ui::ManagedDisplayInfo external_display_info =
CreateDisplayInfo(2, gfx::Rect(0, 0, 1920, 1080));
info_list.push_back(external_display_info);

Powered by Google App Engine
This is Rietveld 408576698