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

Side by Side Diff: tests/ColorSpaceTest.cpp

Issue 2243403003: Revert of Add regression test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « resources/invalid_images/crbug636268.png ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « resources/invalid_images/crbug636268.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698