From 469a3fe6edb3fb29acf6c03de662a6f00f6804b8 Mon Sep 17 00:00:00 2001 From: mtklein Date: Fri, 7 Aug 2015 09:33:37 -0700 Subject: Add approxBytesUsed to hashes. BUG=skia: Review URL: https://codereview.chromium.org/1280653003 --- tests/HashTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/HashTest.cpp') diff --git a/tests/HashTest.cpp b/tests/HashTest.cpp index 848986162d..f53faaf864 100644 --- a/tests/HashTest.cpp +++ b/tests/HashTest.cpp @@ -23,6 +23,8 @@ DEF_TEST(HashMap, r) { 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); -- cgit v1.2.3