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

Side by Side Diff: tests/FlateTest.cpp

Issue 936583002: SK_NO_FLATE (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: no source Created 5 years, 10 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
« gyp/common_conditions.gypi ('K') | « src/core/SkFlate.cpp ('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 2011 Google Inc. 2 * Copyright 2011 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 "SkData.h" 8 #include "SkData.h"
9 #include "SkFlate.h" 9 #include "SkFlate.h"
10 #include "SkStream.h" 10 #include "SkStream.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 if (reporter->verbose()) { 98 if (reporter->verbose()) {
99 SkDebugf("Flate Test: \t input size: " SK_SIZE_T_SPECIFIER 99 SkDebugf("Flate Test: \t input size: " SK_SIZE_T_SPECIFIER
100 "\tcompressed size: " SK_SIZE_T_SPECIFIER 100 "\tcompressed size: " SK_SIZE_T_SPECIFIER
101 "\tratio: %.4g\n", 101 "\tratio: %.4g\n",
102 dataSize, compressedSize, compressionRatio); 102 dataSize, compressedSize, compressionRatio);
103 } 103 }
104 } 104 }
105 105
106 DEF_TEST(Flate, reporter) { 106 DEF_TEST(Flate, reporter) {
107 #ifdef SK_HAS_ZLIB 107 #ifndef SK_NO_FLATE
108 REPORTER_ASSERT(reporter, SkFlate::HaveFlate()); 108 REPORTER_ASSERT(reporter, SkFlate::HaveFlate());
109 #endif 109 #endif
110 if (SkFlate::HaveFlate()) { 110 if (SkFlate::HaveFlate()) {
111 SkMemoryStream memStream; 111 SkMemoryStream memStream;
112 TestFlate(reporter, &memStream, 512); 112 TestFlate(reporter, &memStream, 512);
113 TestFlate(reporter, &memStream, 10240); 113 TestFlate(reporter, &memStream, 10240);
114 114
115 SkZeroSizeMemStream fileStream; 115 SkZeroSizeMemStream fileStream;
116 TestFlate(reporter, &fileStream, 512); 116 TestFlate(reporter, &fileStream, 512);
117 TestFlate(reporter, &fileStream, 10240); 117 TestFlate(reporter, &fileStream, 10240);
118 } 118 }
119 } 119 }
OLDNEW
« gyp/common_conditions.gypi ('K') | « src/core/SkFlate.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698