chromium/v8/test/unittests/heap/base/incremental-marking-schedule-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/base/incremental-marking-schedule.h"

#include "src/base/platform/time.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace heap::base {

namespace {

constexpr size_t kZeroBytesStep =;

class IncrementalMarkingScheduleTest : public ::testing::Test {};

const v8::base::TimeDelta kHalfEstimatedMarkingTime =;

}  // namespace

TEST_F(IncrementalMarkingScheduleTest, FirstStepReturnsDefaultDuration) {}

TEST_F(IncrementalMarkingScheduleTest, EmptyStepDuration) {}

// If marking is not behind schedule and very small time passed between steps
// the oracle should return the minimum step duration.
TEST_F(IncrementalMarkingScheduleTest, NoTimePassedReturnsMinimumDuration) {}

TEST_F(IncrementalMarkingScheduleTest, OracleDoesntExccedMaximumStepDuration) {}

TEST_F(IncrementalMarkingScheduleTest, AheadOfScheduleReturnsMinimumDuration) {}

TEST_F(IncrementalMarkingScheduleTest,
       AheadOfScheduleReturnsMinimumDurationZeroStep) {}

TEST_F(IncrementalMarkingScheduleTest, BehindScheduleReturnsDelta) {}

TEST_F(IncrementalMarkingScheduleTest, GetCurrentStepInfo) {}

}  // namespace heap::base