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

Unified Diff: ui/gfx/color_profile_win_unittest.cc

Issue 1796293003: Image decode color: Push color profile from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows tests Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« ui/gfx/color_profile_win.cc ('K') | « ui/gfx/color_profile_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_profile_win_unittest.cc
diff --git a/ui/gfx/color_profile_win_unittest.cc b/ui/gfx/color_profile_win_unittest.cc
index 604ee36201b291e0a7a196466acf2e2dcec7774f..bc23d2a90faa7bd6e3cb87de5f43ae991f367811 100644
--- a/ui/gfx/color_profile_win_unittest.cc
+++ b/ui/gfx/color_profile_win_unittest.cc
@@ -14,16 +14,19 @@ bool TestColorProfileUsingScreenBounds(const gfx::Rect& bounds) {
}
TEST(ColorProfileTest, GetDisplayColorProfile) {
+ gfx::UpdateDisplayColorProfileCache();
const gfx::Rect in_screen_bounds(10, 10, 100, 100);
EXPECT_TRUE(TestColorProfileUsingScreenBounds(in_screen_bounds));
}
TEST(ColorProfileTest, GetDisplayColorProfileForOffScreenBounds) {
+ gfx::UpdateDisplayColorProfileCache();
const gfx::Rect off_screen_bounds(-100, -100, 10, 10);
EXPECT_FALSE(TestColorProfileUsingScreenBounds(off_screen_bounds));
}
TEST(ColorProfileTest, GetDisplayColorProfileForEmptyBounds) {
+ gfx::UpdateDisplayColorProfileCache();
const gfx::Rect empty_screen_bounds(10, 10, 0, 0);
EXPECT_TRUE(empty_screen_bounds.IsEmpty());
EXPECT_FALSE(TestColorProfileUsingScreenBounds(empty_screen_bounds));
« ui/gfx/color_profile_win.cc ('K') | « ui/gfx/color_profile_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698