chromium/v8/test/unittests/heap/cppgc/gc-invoker-unittest.cc

// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {};

}  // namespace

TEST(GCInvokerTest, PrecideGCIsInvokedSynchronously) {}

TEST(GCInvokerTest, ConservativeGCIsInvokedSynchronouslyWhenSupported) {}

TEST(GCInvokerTest, ConservativeGCIsScheduledAsPreciseGCViaPlatform) {}

TEST(GCInvokerTest, ConservativeGCIsInvokedAsPreciseGCViaPlatform) {}

TEST(GCInvokerTest, IncrementalGCIsStarted) {}

}  // namespace cppgc::internal