Index: test/unittests/test-utils.h |
diff --git a/test/unittests/test-utils.h b/test/unittests/test-utils.h |
index 78283bff572ae31248503f994f9841a9cdae85ca..1342510b6115263bbf95b5e756ed9338be16f17a 100644 |
--- a/test/unittests/test-utils.h |
+++ b/test/unittests/test-utils.h |
@@ -93,12 +93,13 @@ class TestWithIsolate : public virtual ::v8::TestWithIsolate { |
class TestWithZone : public virtual ::testing::Test { |
public: |
- TestWithZone() {} |
+ TestWithZone() : zone_(&allocator_) {} |
virtual ~TestWithZone(); |
Zone* zone() { return &zone_; } |
private: |
+ base::AccountingAllocator allocator_; |
Zone zone_; |
DISALLOW_COPY_AND_ASSIGN(TestWithZone); |
@@ -107,12 +108,13 @@ class TestWithZone : public virtual ::testing::Test { |
class TestWithIsolateAndZone : public virtual TestWithIsolate { |
public: |
- TestWithIsolateAndZone() {} |
+ TestWithIsolateAndZone() : zone_(&allocator_) {} |
virtual ~TestWithIsolateAndZone(); |
Zone* zone() { return &zone_; } |
private: |
+ base::AccountingAllocator allocator_; |
Zone zone_; |
DISALLOW_COPY_AND_ASSIGN(TestWithIsolateAndZone); |