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

Unified Diff: ui/display/manager/display_layout_builder_unittest.cc

Issue 1838833002: Move DisplayLayout and DisplayLayoutBuilder From ash To ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screenwinmove
Patch Set: Fix comment 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
« no previous file with comments | « ui/display/manager/display_layout_builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/manager/display_layout_builder_unittest.cc
diff --git a/ash/display/display_layout_builder_unittest.cc b/ui/display/manager/display_layout_builder_unittest.cc
similarity index 87%
rename from ash/display/display_layout_builder_unittest.cc
rename to ui/display/manager/display_layout_builder_unittest.cc
index 159790cd48342336e16a0ef126bdbe7ed9625a80..591a16cbd2925bf9b86809ac3d81f3fbfa7cd238 100644
--- a/ash/display/display_layout_builder_unittest.cc
+++ b/ui/display/manager/display_layout_builder_unittest.cc
@@ -2,15 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/display/display_layout_builder.h"
+#include "ui/display/manager/display_layout_builder.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace ash {
+namespace display {
-typedef testing::Test DisplayLayoutBuilderTest;
-
-TEST_F(DisplayLayoutBuilderTest, SecondaryPlacement) {
+TEST(DisplayLayoutBuilderTest, SecondaryPlacement) {
DisplayLayoutBuilder builder(1);
builder.SetSecondaryPlacement(2, DisplayPlacement::LEFT, 30);
scoped_ptr<DisplayLayout> layout(builder.Build());
@@ -22,7 +20,7 @@ TEST_F(DisplayLayoutBuilderTest, SecondaryPlacement) {
EXPECT_EQ(DisplayPlacement::LEFT, layout->placement_list[0].position);
}
-TEST_F(DisplayLayoutBuilderTest, MultiplePlacement) {
+TEST(DisplayLayoutBuilderTest, MultiplePlacement) {
DisplayLayoutBuilder builder(1);
builder.AddDisplayPlacement(5, 1, DisplayPlacement::TOP, 30);
builder.AddDisplayPlacement(3, 5, DisplayPlacement::LEFT, 20);
@@ -48,4 +46,4 @@ TEST_F(DisplayLayoutBuilderTest, MultiplePlacement) {
EXPECT_EQ(DisplayPlacement::TOP, layout->placement_list[2].position);
}
-} // namespace ash
+} // namespace display
« no previous file with comments | « ui/display/manager/display_layout_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698