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

Side by Side Diff: tests/MiniDataTest.cpp

Issue 617003004: Archive more dead code. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove header from .gypi Created 6 years, 2 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 | « src/core/SkSinTable.h ('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
(Empty)
1 #include "SkMiniData.h"
2 #include "Test.h"
3
4 DEF_TEST(MiniData, r) {
5 static const char* s = "abcdefghijklmnopqrstuvwxyz";
6
7 for (size_t len = 0; len <= 26; len++) {
8 SkMiniData md(s, len);
9 REPORTER_ASSERT(r, md.len() == len);
10 REPORTER_ASSERT(r, 0 == memcmp(md.data(), s, len));
11
12 SkMiniData copy(md);
13 REPORTER_ASSERT(r, copy.len() == len);
14 REPORTER_ASSERT(r, 0 == memcmp(copy.data(), s, len));
15 }
16 }
OLDNEW
« no previous file with comments | « src/core/SkSinTable.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698