| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "platform/graphics/BitmapImage.h" | 31 #include "platform/graphics/BitmapImage.h" |
| 32 | 32 |
| 33 #include "platform/SharedBuffer.h" | 33 #include "platform/SharedBuffer.h" |
| 34 #include "platform/graphics/BitmapImageMetrics.h" | 34 #include "platform/graphics/BitmapImageMetrics.h" |
| 35 #include "platform/graphics/DeferredImageDecoder.h" | 35 #include "platform/graphics/DeferredImageDecoder.h" |
| 36 #include "platform/graphics/ImageObserver.h" | 36 #include "platform/graphics/ImageObserver.h" |
| 37 #include "platform/testing/HistogramTester.h" | 37 #include "platform/testing/HistogramTester.h" |
| 38 #include "platform/testing/UnitTestHelpers.h" | 38 #include "platform/testing/UnitTestHelpers.h" |
| 39 #include "platform/wtf/StdLibExtras.h" |
| 39 #include "testing/gtest/include/gtest/gtest.h" | 40 #include "testing/gtest/include/gtest/gtest.h" |
| 40 #include "third_party/skia/include/core/SkImage.h" | 41 #include "third_party/skia/include/core/SkImage.h" |
| 41 #include "wtf/StdLibExtras.h" | |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class BitmapImageTest : public ::testing::Test { | 45 class BitmapImageTest : public ::testing::Test { |
| 46 public: | 46 public: |
| 47 class FakeImageObserver : public GarbageCollectedFinalized<FakeImageObserver>, | 47 class FakeImageObserver : public GarbageCollectedFinalized<FakeImageObserver>, |
| 48 public ImageObserver { | 48 public ImageObserver { |
| 49 USING_GARBAGE_COLLECTED_MIXIN(FakeImageObserver); | 49 USING_GARBAGE_COLLECTED_MIXIN(FakeImageObserver); |
| 50 | 50 |
| 51 public: | 51 public: |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 OriginRightBottom}, | 326 OriginRightBottom}, |
| 327 {"/LayoutTests/images/resources/exif-orientation-8-llo.jpg", | 327 {"/LayoutTests/images/resources/exif-orientation-8-llo.jpg", |
| 328 OriginLeftBottom}}; | 328 OriginLeftBottom}}; |
| 329 | 329 |
| 330 INSTANTIATE_TEST_CASE_P( | 330 INSTANTIATE_TEST_CASE_P( |
| 331 DecodedImageOrientationHistogramTest, | 331 DecodedImageOrientationHistogramTest, |
| 332 DecodedImageOrientationHistogramTest, | 332 DecodedImageOrientationHistogramTest, |
| 333 ::testing::ValuesIn(kDecodedImageOrientationHistogramTestParams)); | 333 ::testing::ValuesIn(kDecodedImageOrientationHistogramTestParams)); |
| 334 | 334 |
| 335 } // namespace blink | 335 } // namespace blink |
| OLD | NEW |