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

Side by Side Diff: cc/region_unittest.cc

Issue 11410021: Remove WTF and WebCore from cc/ and webkit/compositor_bindings/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix content_browsertests 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/region.cc ('k') | cc/render_pass.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "config.h"
6
7 #include "cc/region.h" 5 #include "cc/region.h"
8 6
9 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
10 8
11 using namespace cc; 9 using namespace cc;
12 10
13 namespace { 11 namespace {
14 12
15 #define TEST_INSIDE_RECT(r, x, y, w, h) \ 13 #define TEST_INSIDE_RECT(r, x, y, w, h) \
16 EXPECT_TRUE(r.Contains(gfx::Point(x, y))); \ 14 EXPECT_TRUE(r.Contains(gfx::Point(x, y))); \
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 r1 = gfx::Rect(0, 0, 50, 50); 445 r1 = gfx::Rect(0, 0, 50, 50);
448 r1.Union(gfx::Rect(100, 0, 50, 50)); 446 r1.Union(gfx::Rect(100, 0, 50, 50));
449 r1.Union(gfx::Rect(0, 0, 500, 500)); 447 r1.Union(gfx::Rect(0, 0, 500, 500));
450 r3 = r1; 448 r3 = r1;
451 r1.Swap(r2); 449 r1.Swap(r2);
452 EXPECT_EQ(r1.ToString(), Region(gfx::Rect(0, 0, 50, 50)).ToString()); 450 EXPECT_EQ(r1.ToString(), Region(gfx::Rect(0, 0, 50, 50)).ToString());
453 EXPECT_EQ(r2.ToString(), r3.ToString()); 451 EXPECT_EQ(r2.ToString(), r3.ToString());
454 } 452 }
455 453
456 } // namespace 454 } // namespace
OLDNEW
« no previous file with comments | « cc/region.cc ('k') | cc/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698