#include "src/heap/cppgc/gc-invoker.h"
#include <optional>
#include "include/cppgc/platform.h"
#include "src/heap/cppgc/heap.h"
#include "test/unittests/heap/cppgc/test-platform.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cppgc::internal {
namespace {
class MockGarbageCollector : public GarbageCollector { … };
class MockTaskRunner : public cppgc::TaskRunner { … };
class MockPlatform : public cppgc::Platform { … };
}
TEST(GCInvokerTest, PrecideGCIsInvokedSynchronously) { … }
TEST(GCInvokerTest, ConservativeGCIsInvokedSynchronouslyWhenSupported) { … }
TEST(GCInvokerTest, ConservativeGCIsScheduledAsPreciseGCViaPlatform) { … }
TEST(GCInvokerTest, ConservativeGCIsInvokedAsPreciseGCViaPlatform) { … }
TEST(GCInvokerTest, IncrementalGCIsStarted) { … }
}