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

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

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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/resource_pool.cc ('k') | cc/resources/resource_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>
8
7 #include "base/run_loop.h" 9 #include "base/run_loop.h"
8 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
9 #include "cc/resources/resource_util.h" 11 #include "cc/resources/resource_util.h"
10 #include "cc/resources/scoped_resource.h" 12 #include "cc/resources/scoped_resource.h"
11 #include "cc/test/fake_output_surface.h" 13 #include "cc/test/fake_output_surface.h"
12 #include "cc/test/fake_output_surface_client.h" 14 #include "cc/test/fake_output_surface_client.h"
13 #include "cc/test/fake_resource_provider.h" 15 #include "cc/test/fake_resource_provider.h"
14 #include "cc/test/test_shared_bitmap_manager.h" 16 #include "cc/test/test_shared_bitmap_manager.h"
15 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
16 18
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 task_runner_->PostDelayedTask(FROM_HERE, run_loop.QuitClosure(), 215 task_runner_->PostDelayedTask(FROM_HERE, run_loop.QuitClosure(),
214 base::TimeDelta::FromMillisecondsD(200)); 216 base::TimeDelta::FromMillisecondsD(200));
215 run_loop.Run(); 217 run_loop.Run();
216 218
217 EXPECT_EQ(0u, resource_provider_->num_resources()); 219 EXPECT_EQ(0u, resource_provider_->num_resources());
218 EXPECT_EQ(0u, resource_pool_->GetTotalMemoryUsageForTesting()); 220 EXPECT_EQ(0u, resource_pool_->GetTotalMemoryUsageForTesting());
219 } 221 }
220 222
221 } // namespace 223 } // namespace
222 } // namespace cc 224 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/resource_pool.cc ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698