#include "src/heap/cppgc/heap-statistics-collector.h"
#include "include/cppgc/heap-statistics.h"
#include "include/cppgc/persistent.h"
#include "src/base/logging.h"
#include "src/base/macros.h"
#include "src/heap/cppgc/globals.h"
#include "test/unittests/heap/cppgc/tests.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cppgc {
namespace internal {
class HeapStatisticsCollectorTest : public testing::TestWithHeap { … };
TEST_F(HeapStatisticsCollectorTest, EmptyHeapBriefStatisitcs) { … }
TEST_F(HeapStatisticsCollectorTest, EmptyHeapDetailedStatisitcs) { … }
namespace {
template <size_t Size>
class GCed : public GarbageCollected<GCed<Size>> { … };
}
TEST_F(HeapStatisticsCollectorTest, NonEmptyNormalPage) { … }
TEST_F(HeapStatisticsCollectorTest, NonEmptyLargePage) { … }
TEST_F(HeapStatisticsCollectorTest, BriefStatisticsWithDiscardingOnNormalPage) { … }
TEST_F(HeapStatisticsCollectorTest,
BriefStatisticsWithoutDiscardingOnNormalPage) { … }
TEST_F(HeapStatisticsCollectorTest,
DetailedStatisticsWithDiscardingOnNormalPage) { … }
}
}