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> |
| 6 |
| 7 #include "base/macros.h" |
5 #include "cc/resources/ui_resource_bitmap.h" | 8 #include "cc/resources/ui_resource_bitmap.h" |
6 #include "cc/test/fake_layer_tree_host_client.h" | 9 #include "cc/test/fake_layer_tree_host_client.h" |
7 #include "cc/test/test_task_graph_runner.h" | 10 #include "cc/test/test_task_graph_runner.h" |
8 #include "cc/trees/layer_tree_host.h" | 11 #include "cc/trees/layer_tree_host.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
12 #include "third_party/skia/include/core/SkCanvas.h" | 15 #include "third_party/skia/include/core/SkCanvas.h" |
13 #include "ui/android/resources/resource_manager_impl.h" | 16 #include "ui/android/resources/resource_manager_impl.h" |
14 #include "ui/android/resources/system_ui_resource_type.h" | 17 #include "ui/android/resources/system_ui_resource_type.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 EXPECT_EQ(kNumFrames, actual_rects.size()); | 178 EXPECT_EQ(kNumFrames, actual_rects.size()); |
176 for (size_t i = 0; i < kNumFrames; i++) { | 179 for (size_t i = 0; i < kNumFrames; i++) { |
177 EXPECT_EQ(expected_rects[i].size(), actual_rects[i].size()); | 180 EXPECT_EQ(expected_rects[i].size(), actual_rects[i].size()); |
178 for (size_t j = 0; j < actual_rects[i].size(); j++) { | 181 for (size_t j = 0; j < actual_rects[i].size(); j++) { |
179 EXPECT_EQ(expected_rects[i][j], actual_rects[i][j]); | 182 EXPECT_EQ(expected_rects[i][j], actual_rects[i][j]); |
180 } | 183 } |
181 } | 184 } |
182 } | 185 } |
183 | 186 |
184 } // namespace ui | 187 } // namespace ui |
OLD | NEW |