OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/timer/elapsed_timer.h" | 5 #include "base/timer/elapsed_timer.h" |
6 #include "platform/image-encoders/RGBAtoRGB.h" | 6 #include "platform/image-encoders/RGBAtoRGB.h" |
| 7 #include "platform/wtf/build_config.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "wtf/build_config.h" | |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class RGBAtoRGBTest : public ::testing::Test { | 12 class RGBAtoRGBTest : public ::testing::Test { |
13 public: | 13 public: |
14 RGBAtoRGBTest() {} | 14 RGBAtoRGBTest() {} |
15 }; | 15 }; |
16 | 16 |
17 static const size_t kChannelsRGBA = 4; | 17 static const size_t kChannelsRGBA = 4; |
18 static const size_t kChannelsRGB = 3; | 18 static const size_t kChannelsRGB = 3; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 cleanup(); | 227 cleanup(); |
228 return result; | 228 return result; |
229 } | 229 } |
230 | 230 |
231 TEST_F(RGBAtoRGBTest, randomPixels) { | 231 TEST_F(RGBAtoRGBTest, randomPixels) { |
232 EXPECT_TRUE(TestRandNpixels()); | 232 EXPECT_TRUE(TestRandNpixels()); |
233 } | 233 } |
234 | 234 |
235 #endif | 235 #endif |
236 } // namespace blink | 236 } // namespace blink |
OLD | NEW |