OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "Resources.h" | 8 #include "Resources.h" |
9 #include "SkCodec.h" | 9 #include "SkCodec.h" |
10 #include "SkColorSpace.h" | 10 #include "SkColorSpace.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 REPORTER_ASSERT(r, !SkColorSpace::Equals(nullptr, srgb.get())); | 252 REPORTER_ASSERT(r, !SkColorSpace::Equals(nullptr, srgb.get())); |
253 REPORTER_ASSERT(r, !SkColorSpace::Equals(srgb.get(), nullptr)); | 253 REPORTER_ASSERT(r, !SkColorSpace::Equals(srgb.get(), nullptr)); |
254 REPORTER_ASSERT(r, !SkColorSpace::Equals(adobe.get(), srgb.get())); | 254 REPORTER_ASSERT(r, !SkColorSpace::Equals(adobe.get(), srgb.get())); |
255 REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), srgb.get())); | 255 REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), srgb.get())); |
256 REPORTER_ASSERT(r, !SkColorSpace::Equals(z32.get(), z30.get())); | 256 REPORTER_ASSERT(r, !SkColorSpace::Equals(z32.get(), z30.get())); |
257 REPORTER_ASSERT(r, !SkColorSpace::Equals(upperLeft.get(), srgb.get())); | 257 REPORTER_ASSERT(r, !SkColorSpace::Equals(upperLeft.get(), srgb.get())); |
258 REPORTER_ASSERT(r, !SkColorSpace::Equals(upperLeft.get(), upperRight.get()))
; | 258 REPORTER_ASSERT(r, !SkColorSpace::Equals(upperLeft.get(), upperRight.get()))
; |
259 REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), upperRight.get())); | 259 REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), upperRight.get())); |
260 REPORTER_ASSERT(r, !SkColorSpace::Equals(upperRight.get(), adobe.get())); | 260 REPORTER_ASSERT(r, !SkColorSpace::Equals(upperRight.get(), adobe.get())); |
261 } | 261 } |
262 | |
263 DEF_TEST(ColorSpace_CRBug, r) { | |
264 sk_sp<SkData> data = SkData::MakeFromFileName( | |
265 GetResourcePath("invalid_images/crbug636268.png").c_str()); | |
266 SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data.get())); | |
267 REPORTER_ASSERT(r, codec.get()); | |
268 } | |
OLD | NEW |