| 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/display.h" | 5 #include "ui/display/display.h" |
| 6 | 6 |
| 7 #include <tuple> | 7 #include <tuple> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "ui/display/manager/display_layout.h" | 11 #include "ui/display/display_layout.h" |
| 12 #include "ui/display/manager/display_layout_builder.h" | 12 #include "ui/display/display_layout_builder.h" |
| 13 | 13 |
| 14 namespace display { | 14 namespace display { |
| 15 | 15 |
| 16 TEST(DisplayLayoutTest, Empty) { | 16 TEST(DisplayLayoutTest, Empty) { |
| 17 Displays display_list; | 17 Displays display_list; |
| 18 std::vector<int64_t> updated_ids; | 18 std::vector<int64_t> updated_ids; |
| 19 | 19 |
| 20 DisplayLayout display_layout; | 20 DisplayLayout display_layout; |
| 21 display_layout.ApplyToDisplayList(&display_list, &updated_ids, 0); | 21 display_layout.ApplyToDisplayList(&display_list, &updated_ids, 0); |
| 22 | 22 |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 std::make_tuple( | 391 std::make_tuple( |
| 392 gfx::Rect(0, 0, 800, 600), gfx::Rect(0, 0, 1024, 768), | 392 gfx::Rect(0, 0, 800, 600), gfx::Rect(0, 0, 1024, 768), |
| 393 DisplayPlacement::Position::RIGHT, 7, 0, | 393 DisplayPlacement::Position::RIGHT, 7, 0, |
| 394 gfx::Rect(0, 0, 800, 600), gfx::Rect(800, -175, 1024, 768)), | 394 gfx::Rect(0, 0, 800, 600), gfx::Rect(800, -175, 1024, 768)), |
| 395 std::make_tuple( | 395 std::make_tuple( |
| 396 gfx::Rect(0, 0, 800, 600), gfx::Rect(0, 0, 1024, 768), | 396 gfx::Rect(0, 0, 800, 600), gfx::Rect(0, 0, 1024, 768), |
| 397 DisplayPlacement::Position::BOTTOM, 7, 0, | 397 DisplayPlacement::Position::BOTTOM, 7, 0, |
| 398 gfx::Rect(0, 0, 800, 600), gfx::Rect(-231, 600, 1024, 768)))); | 398 gfx::Rect(0, 0, 800, 600), gfx::Rect(-231, 600, 1024, 768)))); |
| 399 | 399 |
| 400 } // namespace display | 400 } // namespace display |
| OLD | NEW |