chromium/v8/test/unittests/heap/cppgc/workloads-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 <iterator>
#include <numeric>

#include "include/cppgc/allocation.h"
#include "include/cppgc/heap-consistency.h"
#include "include/cppgc/persistent.h"
#include "include/cppgc/prefinalizer.h"
#include "src/heap/cppgc/globals.h"
#include "src/heap/cppgc/heap-visitor.h"
#include "src/heap/cppgc/heap.h"
#include "src/heap/cppgc/object-view.h"
#include "test/unittests/heap/cppgc/tests.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cppgc {
namespace internal {

namespace {

class WorkloadsTest : public testing::TestWithHeap {};

class SuperClass;

class PointsBack final : public GarbageCollected<PointsBack> {};
int PointsBack::alive_count_ =;

class SuperClass : public GarbageCollected<SuperClass> {};
int SuperClass::alive_count_ =;

class SubData final : public GarbageCollected<SubData> {};
int SubData::alive_count_ =;

class SubClass final : public SuperClass {};
int SubClass::alive_count_ =;

}  // namespace

TEST_F(WorkloadsTest, Transition) {}

namespace {

class DynamicallySizedObject final
    : public GarbageCollected<DynamicallySizedObject> {};

class ObjectSizeCounter final : private HeapVisitor<ObjectSizeCounter> {};

}  // namespace

TEST_F(WorkloadsTest, BasicFunctionality) {}

}  // namespace internal
}  // namespace cppgc