commit | 469a3fe6edb3fb29acf6c03de662a6f00f6804b8 | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Fri Aug 07 09:33:37 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Aug 07 09:33:37 2015 -0700 |
tree | e3ed4991f9b28075e32fcafd0db742d48d050427 | |
parent | 3848427d884b72114854c8eef9662691f23fae7b [diff] [blame] |
Add approxBytesUsed to hashes. BUG=skia: Review URL: https://codereview.chromium.org/1280653003
diff --git a/tests/HashTest.cpp b/tests/HashTest.cpp index 8489861..f53faaf 100644 --- a/tests/HashTest.cpp +++ b/tests/HashTest.cpp
@@ -23,6 +23,8 @@ map.set(3, 4.0); REPORTER_ASSERT(r, map.count() == 1); + REPORTER_ASSERT(r, map.approxBytesUsed() > 0); + double* found = map.find(3); REPORTER_ASSERT(r, found); REPORTER_ASSERT(r, *found == 4.0);