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

Side by Side Diff: ui/android/resources/resource_manager_impl_unittest.cc

Issue 2506093003: CC Animation: Make cc/animation an independent GN component. (Closed)
Patch Set: Rebase. Created 4 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 | « ui/android/DEPS ('k') | ui/compositor/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/ptr_util.h"
8 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
9 #include "base/trace_event/memory_dump_manager.h" 10 #include "base/trace_event/memory_dump_manager.h"
10 #include "base/trace_event/process_memory_dump.h" 11 #include "base/trace_event/process_memory_dump.h"
11 #include "cc/animation/animation_host.h"
12 #include "cc/resources/ui_resource_bitmap.h" 12 #include "cc/resources/ui_resource_bitmap.h"
13 #include "cc/resources/ui_resource_manager.h" 13 #include "cc/resources/ui_resource_manager.h"
14 #include "cc/test/stub_layer_tree_host_client.h" 14 #include "cc/test/stub_layer_tree_host_client.h"
15 #include "cc/test/test_task_graph_runner.h" 15 #include "cc/test/test_task_graph_runner.h"
16 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "third_party/skia/include/core/SkBitmap.h" 18 #include "third_party/skia/include/core/SkBitmap.h"
19 #include "third_party/skia/include/core/SkCanvas.h" 19 #include "third_party/skia/include/core/SkCanvas.h"
20 #include "ui/android/resources/resource_manager_impl.h" 20 #include "ui/android/resources/resource_manager_impl.h"
21 #include "ui/android/resources/system_ui_resource_type.h" 21 #include "ui/android/resources/system_ui_resource_type.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 ->system_allocator_pool_name(); 195 ->system_allocator_pool_name();
196 size_t expected_dump_count = system_allocator_pool_name ? 2 : 1; 196 size_t expected_dump_count = system_allocator_pool_name ? 2 : 1;
197 EXPECT_EQ(expected_dump_count, allocator_dumps.size()); 197 EXPECT_EQ(expected_dump_count, allocator_dumps.size());
198 for (const auto& dump : allocator_dumps) { 198 for (const auto& dump : allocator_dumps) {
199 ASSERT_TRUE(dump.first.find("ui/resource_manager") == 0 || 199 ASSERT_TRUE(dump.first.find("ui/resource_manager") == 0 ||
200 dump.first.find(system_allocator_pool_name) == 0); 200 dump.first.find(system_allocator_pool_name) == 0);
201 } 201 }
202 } 202 }
203 203
204 } // namespace ui 204 } // namespace ui
OLDNEW
« no previous file with comments | « ui/android/DEPS ('k') | ui/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698