chromium/v8/test/unittests/heap/cppgc/heap-statistics-collector-unittest.cc

// Copyright 2021 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/heap-statistics-collector.h"

#include "include/cppgc/heap-statistics.h"
#include "include/cppgc/persistent.h"
#include "src/base/logging.h"
#include "src/base/macros.h"
#include "src/heap/cppgc/globals.h"
#include "test/unittests/heap/cppgc/tests.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cppgc {
namespace internal {

class HeapStatisticsCollectorTest : public testing::TestWithHeap {};

TEST_F(HeapStatisticsCollectorTest, EmptyHeapBriefStatisitcs) {}

TEST_F(HeapStatisticsCollectorTest, EmptyHeapDetailedStatisitcs) {}

namespace {
template <size_t Size>
class GCed : public GarbageCollected<GCed<Size>> {};
}  // namespace

TEST_F(HeapStatisticsCollectorTest, NonEmptyNormalPage) {}

TEST_F(HeapStatisticsCollectorTest, NonEmptyLargePage) {}

TEST_F(HeapStatisticsCollectorTest, BriefStatisticsWithDiscardingOnNormalPage) {}

TEST_F(HeapStatisticsCollectorTest,
       BriefStatisticsWithoutDiscardingOnNormalPage) {}

TEST_F(HeapStatisticsCollectorTest,
       DetailedStatisticsWithDiscardingOnNormalPage) {}

}  // namespace internal
}  // namespace cppgc