OLD | NEW |
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 Loading... |
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 |
OLD | NEW |