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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp

Issue 1913283002: Trim Skia dependencies in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 months 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
OLDNEW
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 19 matching lines...) Expand all
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 "testing/gtest/include/gtest/gtest.h" 39 #include "testing/gtest/include/gtest/gtest.h"
40 #include "third_party/skia/include/core/SkImage.h"
40 #include "wtf/StdLibExtras.h" 41 #include "wtf/StdLibExtras.h"
41 42
42 namespace blink { 43 namespace blink {
43 44
44 class BitmapImageTest : public ::testing::Test { 45 class BitmapImageTest : public ::testing::Test {
45 public: 46 public:
46 class FakeImageObserver : public GarbageCollectedFinalized<FakeImageObserver >, public ImageObserver { 47 class FakeImageObserver : public GarbageCollectedFinalized<FakeImageObserver >, public ImageObserver {
47 USING_GARBAGE_COLLECTED_MIXIN(FakeImageObserver); 48 USING_GARBAGE_COLLECTED_MIXIN(FakeImageObserver);
48 public: 49 public:
49 FakeImageObserver() 50 FakeImageObserver()
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 {"/LayoutTests/fast/images/resources/exif-orientation-5-lu.jpg", OriginLeftT op}, 374 {"/LayoutTests/fast/images/resources/exif-orientation-5-lu.jpg", OriginLeftT op},
374 {"/LayoutTests/fast/images/resources/exif-orientation-6-ru.jpg", OriginRight Top}, 375 {"/LayoutTests/fast/images/resources/exif-orientation-6-ru.jpg", OriginRight Top},
375 {"/LayoutTests/fast/images/resources/exif-orientation-7-rl.jpg", OriginRight Bottom}, 376 {"/LayoutTests/fast/images/resources/exif-orientation-7-rl.jpg", OriginRight Bottom},
376 {"/LayoutTests/fast/images/resources/exif-orientation-8-llo.jpg", OriginLeft Bottom} 377 {"/LayoutTests/fast/images/resources/exif-orientation-8-llo.jpg", OriginLeft Bottom}
377 }; 378 };
378 379
379 INSTANTIATE_TEST_CASE_P(DecodedImageOrientationHistogramTest, DecodedImageOrient ationHistogramTest, 380 INSTANTIATE_TEST_CASE_P(DecodedImageOrientationHistogramTest, DecodedImageOrient ationHistogramTest,
380 ::testing::ValuesIn(kDecodedImageOrientationHistogramTestParams)); 381 ::testing::ValuesIn(kDecodedImageOrientationHistogramTestParams));
381 382
382 } // namespace blink 383 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698