#include "src/heap/allocation-observer.h"
#include "src/base/logging.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
namespace {
class UnusedObserver : public AllocationObserver { … };
}
TEST(AllocationObserverTest, AddAndRemoveUnusedObservers) { … }
namespace {
class VerifyStepObserver : public AllocationObserver { … };
}
TEST(AllocationObserverTest, Step) { … }
namespace {
class RecursiveAddObserver : public AllocationObserver { … };
}
TEST(AllocationObserverTest, RecursiveAdd) { … }
namespace {
class RecursiveRemoveObserver : public AllocationObserver { … };
}
TEST(AllocationObserverTest, RecursiveRemove) { … }
}
}