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

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

Issue 660333004: cc cleanup: Update paths to geometry headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 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
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/picture_layer_tiling_unittest.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 "cc/resources/picture_layer_tiling_set.h" 5 #include "cc/resources/picture_layer_tiling_set.h"
6 6
7 #include <map> 7 #include <map>
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/resources/resource_pool.h"
11 #include "cc/resources/resource_provider.h" 10 #include "cc/resources/resource_provider.h"
12 #include "cc/test/fake_output_surface.h" 11 #include "cc/test/fake_output_surface.h"
13 #include "cc/test/fake_output_surface_client.h" 12 #include "cc/test/fake_output_surface_client.h"
14 #include "cc/test/fake_picture_layer_tiling_client.h" 13 #include "cc/test/fake_picture_layer_tiling_client.h"
15 #include "cc/test/fake_tile_manager_client.h"
16 #include "cc/test/test_shared_bitmap_manager.h" 14 #include "cc/test/test_shared_bitmap_manager.h"
17 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
18 #include "ui/gfx/size_conversions.h" 16 #include "ui/gfx/geometry/size_conversions.h"
19 17
20 namespace cc { 18 namespace cc {
21 namespace { 19 namespace {
22 20
23 TEST(PictureLayerTilingSetTest, NoResources) { 21 TEST(PictureLayerTilingSetTest, NoResources) {
24 FakePictureLayerTilingClient client; 22 FakePictureLayerTilingClient client;
25 gfx::Size layer_bounds(1000, 800); 23 gfx::Size layer_bounds(1000, 800);
26 PictureLayerTilingSet set(&client); 24 PictureLayerTilingSet set(&client);
27 client.SetTileSize(gfx::Size(256, 256)); 25 client.SetTileSize(gfx::Size(256, 256));
28 26
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 std::vector<Tile*> new_tiles = target_->tiling_at(0)->AllTilesForTesting(); 553 std::vector<Tile*> new_tiles = target_->tiling_at(0)->AllTilesForTesting();
556 for (size_t i = 0; i < original_tiles.size(); ++i) { 554 for (size_t i = 0; i < original_tiles.size(); ++i) {
557 std::vector<Tile*>::iterator find = 555 std::vector<Tile*>::iterator find =
558 std::find(new_tiles.begin(), new_tiles.end(), original_tiles[i]); 556 std::find(new_tiles.begin(), new_tiles.end(), original_tiles[i]);
559 EXPECT_TRUE(find == new_tiles.end()); 557 EXPECT_TRUE(find == new_tiles.end());
560 } 558 }
561 } 559 }
562 560
563 } // namespace 561 } // namespace
564 } // namespace cc 562 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698