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

Side by Side Diff: cc/resources/picture_layer_tiling_unittest.cc

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/resources/picture_layer_tiling_set_unittest.cc ('k') | cc/resources/picture_pile.h » ('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 "cc/picture_layer_tiling.h" 5 #include "cc/resources/picture_layer_tiling.h"
6 6
7 #include "cc/test/fake_picture_layer_tiling_client.h" 7 #include "cc/test/fake_picture_layer_tiling_client.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/gfx/rect_conversions.h" 9 #include "ui/gfx/rect_conversions.h"
10 #include "ui/gfx/size_conversions.h" 10 #include "ui/gfx/size_conversions.h"
11 11
12 namespace cc { 12 namespace cc {
13 namespace { 13 namespace {
14 14
15 class PictureLayerTilingIteratorTest : public testing::Test { 15 class PictureLayerTilingIteratorTest : public testing::Test {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 EXPECT_EQ(50, in.y() - out.y()); 349 EXPECT_EQ(50, in.y() - out.y());
350 EXPECT_EQ(out.right() - in.right(), in.x() - out.x()); 350 EXPECT_EQ(out.right() - in.right(), in.x() - out.x());
351 EXPECT_LE(out.width() * out.height(), target_area); 351 EXPECT_LE(out.width() * out.height(), target_area);
352 EXPECT_GT(out.width() * out.height(), 352 EXPECT_GT(out.width() * out.height(),
353 target_area - out.height() * 2); 353 target_area - out.height() * 2);
354 EXPECT_TRUE(bounds.Contains(out)); 354 EXPECT_TRUE(bounds.Contains(out));
355 } 355 }
356 356
357 } // namespace 357 } // namespace
358 } // namespace cc 358 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set_unittest.cc ('k') | cc/resources/picture_pile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698