OLD | NEW |
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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "cc/base/region.h" | 8 #include "cc/base/region.h" |
9 #include "cc/playback/raster_source.h" | 9 #include "cc/raster/raster_source.h" |
10 #include "cc/test/fake_content_layer_client.h" | 10 #include "cc/test/fake_content_layer_client.h" |
11 #include "cc/test/fake_recording_source.h" | 11 #include "cc/test/fake_recording_source.h" |
12 #include "cc/test/skia_common.h" | 12 #include "cc/test/skia_common.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "third_party/skia/include/core/SkRefCnt.h" | 15 #include "third_party/skia/include/core/SkRefCnt.h" |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 namespace { | 18 namespace { |
19 | 19 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 &images); | 362 &images); |
363 EXPECT_EQ(3u, images.size()); | 363 EXPECT_EQ(3u, images.size()); |
364 EXPECT_TRUE(images[0].image() == discardable_image[0][0]); | 364 EXPECT_TRUE(images[0].image() == discardable_image[0][0]); |
365 EXPECT_TRUE(images[1].image() == discardable_image[0][1]); | 365 EXPECT_TRUE(images[1].image() == discardable_image[0][1]); |
366 EXPECT_TRUE(images[2].image() == discardable_image[1][1]); | 366 EXPECT_TRUE(images[2].image() == discardable_image[1][1]); |
367 } | 367 } |
368 } | 368 } |
369 | 369 |
370 } // namespace | 370 } // namespace |
371 } // namespace cc | 371 } // namespace cc |
OLD | NEW |