| OLD | NEW | 
|   1 // Copyright 2016 The Chromium Authors. All rights reserved. |   1 // Copyright 2016 The Chromium Authors. All rights reserved. | 
|   2 // Use of this source code is governed by a BSD-style license that can be |   2 // Use of this source code is governed by a BSD-style license that can be | 
|   3 // found in the LICENSE file. |   3 // found in the LICENSE file. | 
|   4  |   4  | 
|   5 #include "ui/display/manager/display_layout_builder.h" |   5 #include "ui/display/display_layout_builder.h" | 
|   6  |   6  | 
|   7 #include "testing/gtest/include/gtest/gtest.h" |   7 #include "testing/gtest/include/gtest/gtest.h" | 
|   8  |   8  | 
|   9 namespace display { |   9 namespace display { | 
|  10  |  10  | 
|  11 TEST(DisplayLayoutBuilderTest, SecondaryPlacement) { |  11 TEST(DisplayLayoutBuilderTest, SecondaryPlacement) { | 
|  12   DisplayLayoutBuilder builder(1); |  12   DisplayLayoutBuilder builder(1); | 
|  13   builder.SetSecondaryPlacement(2, DisplayPlacement::LEFT, 30); |  13   builder.SetSecondaryPlacement(2, DisplayPlacement::LEFT, 30); | 
|  14   std::unique_ptr<DisplayLayout> layout(builder.Build()); |  14   std::unique_ptr<DisplayLayout> layout(builder.Build()); | 
|  15   ASSERT_EQ(1u, layout->placement_list.size()); |  15   ASSERT_EQ(1u, layout->placement_list.size()); | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
|  40   EXPECT_EQ(10, layout->placement_list[1].offset); |  40   EXPECT_EQ(10, layout->placement_list[1].offset); | 
|  41   EXPECT_EQ(DisplayPlacement::RIGHT, layout->placement_list[1].position); |  41   EXPECT_EQ(DisplayPlacement::RIGHT, layout->placement_list[1].position); | 
|  42  |  42  | 
|  43   EXPECT_EQ(5, layout->placement_list[2].display_id); |  43   EXPECT_EQ(5, layout->placement_list[2].display_id); | 
|  44   EXPECT_EQ(1, layout->placement_list[2].parent_display_id); |  44   EXPECT_EQ(1, layout->placement_list[2].parent_display_id); | 
|  45   EXPECT_EQ(30, layout->placement_list[2].offset); |  45   EXPECT_EQ(30, layout->placement_list[2].offset); | 
|  46   EXPECT_EQ(DisplayPlacement::TOP, layout->placement_list[2].position); |  46   EXPECT_EQ(DisplayPlacement::TOP, layout->placement_list[2].position); | 
|  47 } |  47 } | 
|  48  |  48  | 
|  49 }  // namespace display |  49 }  // namespace display | 
| OLD | NEW |