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

Unified Diff: content/browser/renderer_host/render_widget_host_view_base_unittest.cc

Issue 1927463002: Rename gfx::Display/Screen to display::Display/Screen in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: content/browser/renderer_host/render_widget_host_view_base_unittest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_base_unittest.cc b/content/browser/renderer_host/render_widget_host_view_base_unittest.cc
index 8277d1f6f00d5fd97856303e3c8ce574e31b3276..acce950d8172d5e2609de4b727bf6af5e038a85c 100644
--- a/content/browser/renderer_host/render_widget_host_view_base_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_base_unittest.cc
@@ -6,14 +6,14 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationType.h"
-#include "ui/gfx/display.h"
+#include "ui/display/display.h"
namespace content {
namespace {
-gfx::Display CreateDisplay(int width, int height, int angle) {
- gfx::Display display;
+display::Display CreateDisplay(int width, int height, int angle) {
+ display::Display display;
display.SetRotationAsDegree(angle);
display.set_bounds(gfx::Rect(width, height));
@@ -25,7 +25,7 @@ gfx::Display CreateDisplay(int width, int height, int angle) {
TEST(RenderWidgetHostViewBaseTest, OrientationTypeForMobile) {
// Square display (width == height).
{
- gfx::Display display = CreateDisplay(100, 100, 0);
+ display::Display display = CreateDisplay(100, 100, 0);
EXPECT_EQ(blink::WebScreenOrientationPortraitPrimary,
RenderWidgetHostViewBase::GetOrientationTypeForMobile(display));
@@ -44,7 +44,7 @@ TEST(RenderWidgetHostViewBaseTest, OrientationTypeForMobile) {
// natural width > natural height.
{
- gfx::Display display = CreateDisplay(1, 0, 0);
+ display::Display display = CreateDisplay(1, 0, 0);
EXPECT_EQ(blink::WebScreenOrientationLandscapePrimary,
RenderWidgetHostViewBase::GetOrientationTypeForMobile(display));
@@ -63,7 +63,7 @@ TEST(RenderWidgetHostViewBaseTest, OrientationTypeForMobile) {
// natural width < natural height.
{
- gfx::Display display = CreateDisplay(0, 1, 0);
+ display::Display display = CreateDisplay(0, 1, 0);
EXPECT_EQ(blink::WebScreenOrientationPortraitPrimary,
RenderWidgetHostViewBase::GetOrientationTypeForMobile(display));
@@ -90,7 +90,7 @@ TEST(RenderWidgetHostViewBaseTest, OrientationTypeForDesktop) {
// natural width > natural height.
{
- gfx::Display display = CreateDisplay(1, 0, 0);
+ display::Display display = CreateDisplay(1, 0, 0);
blink::WebScreenOrientationType landscape_1 =
RenderWidgetHostViewBase::GetOrientationTypeForDesktop(display);
EXPECT_TRUE(landscape_1 == blink::WebScreenOrientationLandscapePrimary ||

Powered by Google App Engine
This is Rietveld 408576698