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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #include "SkImageFilter.h" | 25 #include "SkImageFilter.h" |
26 #include "platform/graphics/filters/FEBlend.h" | 26 #include "platform/graphics/filters/FEBlend.h" |
27 #include "platform/graphics/filters/FEGaussianBlur.h" | 27 #include "platform/graphics/filters/FEGaussianBlur.h" |
28 #include "platform/graphics/filters/FEMerge.h" | 28 #include "platform/graphics/filters/FEMerge.h" |
29 #include "platform/graphics/filters/Filter.h" | 29 #include "platform/graphics/filters/Filter.h" |
30 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" | 30 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" |
31 #include "platform/graphics/filters/SourceGraphic.h" | 31 #include "platform/graphics/filters/SourceGraphic.h" |
32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
33 | 33 |
34 using testing::Test; | 34 using ::testing::Test; |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class ImageFilterBuilderTest : public Test { | 38 class ImageFilterBuilderTest : public Test { |
39 protected: | 39 protected: |
40 void InterpolationSpaceTest() { | 40 void InterpolationSpaceTest() { |
41 // Build filter tree | 41 // Build filter tree |
42 Filter* reference_filter = Filter::Create(1.0f); | 42 Filter* reference_filter = Filter::Create(1.0f); |
43 | 43 |
44 // Add a dummy source graphic input | 44 // Add a dummy source graphic input |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 EXPECT_EQ(child->asColorFilter(0), true); | 110 EXPECT_EQ(child->asColorFilter(0), true); |
111 EXPECT_EQ(child->countInputs(), 1); | 111 EXPECT_EQ(child->countInputs(), 1); |
112 } | 112 } |
113 }; | 113 }; |
114 | 114 |
115 TEST_F(ImageFilterBuilderTest, testInterpolationSpace) { | 115 TEST_F(ImageFilterBuilderTest, testInterpolationSpace) { |
116 InterpolationSpaceTest(); | 116 InterpolationSpaceTest(); |
117 } | 117 } |
118 | 118 |
119 } // namespace blink | 119 } // namespace blink |
OLD | NEW |