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

Unified Diff: content/common/cursors/webcursor_unittest.cc

Issue 1537483003: clang/win: Fix build after https://codereview.chromium.org/1525263004/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cursors/webcursor_unittest.cc
diff --git a/content/common/cursors/webcursor_unittest.cc b/content/common/cursors/webcursor_unittest.cc
index 1835423eed8399cbcb8e3e45ef8ad3018feb0145..3a56f8b4a38fe46b45bbcbf8c6d79adca3704e2a 100644
--- a/content/common/cursors/webcursor_unittest.cc
+++ b/content/common/cursors/webcursor_unittest.cc
@@ -298,8 +298,10 @@ void ScaleCursor(float scaleFactor, int hotspotX, int hotspotY) {
ICONINFO windowsIconInfo;
EXPECT_TRUE(GetIconInfo(windowsCursorHandle, &windowsIconInfo));
EXPECT_FALSE(windowsIconInfo.fIcon);
- EXPECT_EQ(static_cast<int>(scaleFactor * hotspotX), windowsIconInfo.xHotspot);
- EXPECT_EQ(static_cast<int>(scaleFactor * hotspotY), windowsIconInfo.yHotspot);
+ EXPECT_EQ(static_cast<DWORD>(scaleFactor * hotspotX),
+ windowsIconInfo.xHotspot);
+ EXPECT_EQ(static_cast<DWORD>(scaleFactor * hotspotY),
+ windowsIconInfo.yHotspot);
}
TEST(WebCursorTest, WindowsCursorScaledAtHiDpi) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698