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

Unified Diff: cc/region_unittest.cc

Issue 11368149: cc: Define Region::Contains() to be A contains B if all points in B are also in A. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « cc/region.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/region_unittest.cc
diff --git a/cc/region_unittest.cc b/cc/region_unittest.cc
index 2fd52d6fb47f65064131ddf69237971ebde360bf..db0fc3c503397b9a54cd711fcea1f4d739beab31 100644
--- a/cc/region_unittest.cc
+++ b/cc/region_unittest.cc
@@ -224,7 +224,10 @@ TEST(RegionTest, ReadPastFullSpanVectorInIntersectsTest) {
}
TEST(RegionTest, ContainsRegion) {
- TEST_NO_CONTAINS(gfx::Rect(), gfx::Rect());
+ TEST_CONTAINS(gfx::Rect(), gfx::Rect());
+ TEST_CONTAINS(gfx::Rect(0, 0, 1, 1), gfx::Rect());
+ TEST_CONTAINS(gfx::Rect(10, 10, 1, 1), gfx::Rect());
+
TEST_NO_CONTAINS(gfx::Rect(), gfx::Rect(0, 0, 1, 1));
TEST_NO_CONTAINS(gfx::Rect(), gfx::Rect(1, 1, 1, 1));
« no previous file with comments | « cc/region.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698