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

Unified Diff: ui/gfx/color_transform_unittest.cc

Issue 2349923002: Add getters for gfx::ColorSpace components (Closed)
Patch Set: Added tests for getters Created 4 years, 3 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
« no previous file with comments | « ui/gfx/color_space.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_transform_unittest.cc
diff --git a/ui/gfx/color_transform_unittest.cc b/ui/gfx/color_transform_unittest.cc
index c5295631449d0e4be3f7de36a46c9d90585c9a31..1cf0318c487d47c50ce7d1553f153ed3ded8829d 100644
--- a/ui/gfx/color_transform_unittest.cc
+++ b/ui/gfx/color_transform_unittest.cc
@@ -490,6 +490,11 @@ TEST_P(ColorSpaceTest, testNullTransform) {
EXPECT_NEAR(tristim.x(), 0.4f, 0.001f);
EXPECT_NEAR(tristim.y(), 0.5f, 0.001f);
EXPECT_NEAR(tristim.z(), 0.6f, 0.001f);
+
+ EXPECT_EQ(color_space_.primaries(), std::tr1::get<0>(GetParam()));
+ EXPECT_EQ(color_space_.transfer_function(), std::tr1::get<1>(GetParam()));
+ EXPECT_EQ(color_space_.matrix(), std::tr1::get<2>(GetParam()));
+ EXPECT_EQ(color_space_.range(), std::tr1::get<3>(GetParam()));
}
TEST_P(ColorSpaceTest, toXYZandBack) {
« no previous file with comments | « ui/gfx/color_space.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698