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

Side by Side Diff: ui/display/manager/display_layout_unittest.cc

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years 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 unified diff | Download patch
« no previous file with comments | « ui/display/manager/display_layout_store.h ('k') | ui/display/manager/display_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/display/manager/display_layout_store.h ('k') | ui/display/manager/display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698