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

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

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 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
« no previous file with comments | « cc/layers/surface_layer.cc ('k') | cc/test/fake_impl_task_runner_provider.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/resource_pool.h" 5 #include "cc/resources/resource_pool.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
11 #include "cc/resources/resource_util.h" 12 #include "cc/resources/resource_util.h"
12 #include "cc/resources/scoped_resource.h" 13 #include "cc/resources/scoped_resource.h"
13 #include "cc/test/fake_resource_provider.h" 14 #include "cc/test/fake_resource_provider.h"
14 #include "cc/test/test_context_provider.h" 15 #include "cc/test/test_context_provider.h"
15 #include "cc/test/test_shared_bitmap_manager.h" 16 #include "cc/test/test_shared_bitmap_manager.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 18
18 namespace cc { 19 namespace cc {
19 20
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // 100x100 is an exact match and should succeed. A subsequent request for 445 // 100x100 is an exact match and should succeed. A subsequent request for
445 // the same size should fail (the resource is already in use). 446 // the same size should fail (the resource is already in use).
446 Resource* resource = 447 Resource* resource =
447 resource_pool_->ReuseResource(gfx::Size(100, 100), format, color_space); 448 resource_pool_->ReuseResource(gfx::Size(100, 100), format, color_space);
448 EXPECT_EQ(nullptr, resource_pool_->ReuseResource(gfx::Size(100, 100), format, 449 EXPECT_EQ(nullptr, resource_pool_->ReuseResource(gfx::Size(100, 100), format,
449 color_space)); 450 color_space));
450 CheckAndReturnResource(resource); 451 CheckAndReturnResource(resource);
451 } 452 }
452 453
453 } // namespace cc 454 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/surface_layer.cc ('k') | cc/test/fake_impl_task_runner_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698