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

Side by Side Diff: ui/gfx/screen_win_unittest.cc

Issue 1543183002: Switch to standard integer types in ui/gfx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/screen_win.cc ('k') | ui/gfx/scrollbar_size.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/gfx/screen_win.h" 5 #include "ui/gfx/screen_win.h"
6 6
7 #include <cwchar> 7 #include <cwchar>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include <windows.h> 11 #include <windows.h>
12 #include <stddef.h>
12 13
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 #include "ui/gfx/display.h" 15 #include "ui/gfx/display.h"
15 #include "ui/gfx/geometry/rect.h" 16 #include "ui/gfx/geometry/rect.h"
16 #include "ui/gfx/win/dpi.h" 17 #include "ui/gfx/win/dpi.h"
17 18
18 namespace gfx { 19 namespace gfx {
19 20
20 namespace { 21 namespace {
21 22
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 L"primary")); 71 L"primary"));
71 std::vector<gfx::Display> displays = 72 std::vector<gfx::Display> displays =
72 ScreenWin::GetDisplaysForMonitorInfos(monitor_infos); 73 ScreenWin::GetDisplaysForMonitorInfos(monitor_infos);
73 74
74 ASSERT_EQ(1u, displays.size()); 75 ASSERT_EQ(1u, displays.size());
75 EXPECT_EQ(gfx::Rect(0, 0, 960, 600), displays[0].bounds()); 76 EXPECT_EQ(gfx::Rect(0, 0, 960, 600), displays[0].bounds());
76 EXPECT_EQ(gfx::Rect(0, 0, 960, 550), displays[0].work_area()); 77 EXPECT_EQ(gfx::Rect(0, 0, 960, 550), displays[0].work_area());
77 } 78 }
78 79
79 } // namespace gfx 80 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/screen_win.cc ('k') | ui/gfx/scrollbar_size.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698