#include "src/heap/cppgc/heap-growing.h"
#include <optional>
#include "include/cppgc/platform.h"
#include "src/heap/cppgc/heap.h"
#include "src/heap/cppgc/stats-collector.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cppgc::internal {
namespace {
class FakeGarbageCollector : public GarbageCollector { … };
class MockGarbageCollector : public GarbageCollector { … };
void FakeAllocate(StatsCollector* stats_collector, size_t bytes) { … }
static constexpr Platform* kNoPlatform = …;
}
TEST(HeapGrowingTest, ConservativeGCInvoked) { … }
TEST(HeapGrowingTest, InitialHeapSize) { … }
TEST(HeapGrowingTest, ConstantGrowingFactor) { … }
TEST(HeapGrowingTest, SmallHeapGrowing) { … }
TEST(HeapGrowingTest, IncrementalGCStarted) { … }
TEST(HeapGrowingTest, IncrementalGCFinalized) { … }
}