From 52b7822fa67e1d587035165258959f9600f8572d Mon Sep 17 00:00:00 2001 From: mtklein Date: Tue, 18 Nov 2014 08:15:23 -0800 Subject: Revert of SkVarAlloc::approxBytesAllocated (patchset #5 id:80001 of https://codereview.chromium.org/730193003/) Reason for revert: Android needs dlmalloc_usable_size(). Original issue's description: > SkVarAlloc::approxBytesAllocated() > > This is what I was getting at on the other CL. > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/f27f1bcce50c8f95aea8469684a70b70c9baee09 > > CQ_EXTRA_TRYBOTS=Test-Android-Nexus5-Adreno330-Arm7-Release-Trybot TBR=reed@google.com,mtklein@chromium.org NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/741443002 --- tests/VarAllocTest.cpp | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 tests/VarAllocTest.cpp (limited to 'tests') diff --git a/tests/VarAllocTest.cpp b/tests/VarAllocTest.cpp deleted file mode 100644 index 21534b29e0..0000000000 --- a/tests/VarAllocTest.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include "Test.h" -#include "SkVarAlloc.h" - -DEF_TEST(VarAlloc, r) { - SkVarAlloc va; - char* p = va.alloc(128, SK_MALLOC_THROW); - sk_bzero(p, 128); // Just checking this is safe. - REPORTER_ASSERT(r, va.approxBytesAllocated() >= 128); -} -- cgit v1.2.3