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

Side by Side Diff: cc/base/tiling_data_unittest.cc

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest 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/base/tiling_data.cc ('k') | cc/base/worker_pool.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/base/tiling_data.h" 5 #include "cc/base/tiling_data.h"
6 6
7 #include <vector>
8
7 #include "cc/test/geometry_test_utils.h" 9 #include "cc/test/geometry_test_utils.h"
8 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
9 11
10 namespace cc { 12 namespace cc {
11 namespace { 13 namespace {
12 14
13 int NumTiles( 15 int NumTiles(
14 gfx::Size max_texture_size, 16 gfx::Size max_texture_size,
15 gfx::Size total_size, 17 gfx::Size total_size,
16 bool has_border_texels) { 18 bool has_border_texels) {
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 TestDiff(big_border, gfx::Rect(5, 5, 100, 100), gfx::Rect(5, 5, 1, 1), 0); 1162 TestDiff(big_border, gfx::Rect(5, 5, 100, 100), gfx::Rect(5, 5, 1, 1), 0);
1161 } 1163 }
1162 1164
1163 TEST(TilingDataTest, DifferenceIteratorNoTiles) { 1165 TEST(TilingDataTest, DifferenceIteratorNoTiles) {
1164 TilingData data(gfx::Size(100, 100), gfx::Size(), false); 1166 TilingData data(gfx::Size(100, 100), gfx::Size(), false);
1165 TestDiff(data, gfx::Rect(0, 0, 100, 100), gfx::Rect(0, 0, 5, 5), 0); 1167 TestDiff(data, gfx::Rect(0, 0, 100, 100), gfx::Rect(0, 0, 5, 5), 0);
1166 } 1168 }
1167 1169
1168 } // namespace 1170 } // namespace
1169 } // namespace cc 1171 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/tiling_data.cc ('k') | cc/base/worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698