chromium/v8/test/unittests/heap/cppgc/concurrent-sweeper-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 <algorithm>
#include <set>
#include <vector>

#include "include/cppgc/allocation.h"
#include "include/cppgc/platform.h"
#include "include/v8-platform.h"
#include "src/heap/cppgc/globals.h"
#include "src/heap/cppgc/heap-object-header.h"
#include "src/heap/cppgc/heap-page.h"
#include "src/heap/cppgc/heap-space.h"
#include "src/heap/cppgc/heap-visitor.h"
#include "src/heap/cppgc/page-memory.h"
#include "src/heap/cppgc/raw-heap.h"
#include "src/heap/cppgc/stats-collector.h"
#include "src/heap/cppgc/sweeper.h"
#include "test/unittests/heap/cppgc/test-platform.h"
#include "test/unittests/heap/cppgc/tests.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cppgc {
namespace internal {

namespace {

size_t g_destructor_callcount;

template <size_t Size>
class Finalizable : public GarbageCollected<Finalizable<Size>> {};

NormalFinalizable;
LargeFinalizable;

template <size_t Size>
class NonFinalizable : public GarbageCollected<NonFinalizable<Size>> {};

NormalNonFinalizable;
LargeNonFinalizable;

}  // namespace

class ConcurrentSweeperTest : public testing::TestWithHeap {};

TEST_F(ConcurrentSweeperTest, BackgroundSweepOfNormalPage) {}

TEST_F(ConcurrentSweeperTest, BackgroundSweepOfLargePage) {}

TEST_F(ConcurrentSweeperTest, DeferredFinalizationOfNormalPage) {}

TEST_F(ConcurrentSweeperTest, DeferredFinalizationOfLargePage) {}

TEST_F(ConcurrentSweeperTest, DestroyLargePageOnMainThread) {}

TEST_F(ConcurrentSweeperTest, IncrementalSweeping) {}

TEST_F(ConcurrentSweeperTest, SweepOnAllocationReturnEmptyPage) {}

}  // namespace internal
}  // namespace cppgc