#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 = …;
}
TEST_F(IncrementalMarkingScheduleTest, FirstStepReturnsDefaultDuration) { … }
TEST_F(IncrementalMarkingScheduleTest, EmptyStepDuration) { … }
TEST_F(IncrementalMarkingScheduleTest, NoTimePassedReturnsMinimumDuration) { … }
TEST_F(IncrementalMarkingScheduleTest, OracleDoesntExccedMaximumStepDuration) { … }
TEST_F(IncrementalMarkingScheduleTest, AheadOfScheduleReturnsMinimumDuration) { … }
TEST_F(IncrementalMarkingScheduleTest,
AheadOfScheduleReturnsMinimumDurationZeroStep) { … }
TEST_F(IncrementalMarkingScheduleTest, BehindScheduleReturnsDelta) { … }
TEST_F(IncrementalMarkingScheduleTest, GetCurrentStepInfo) { … }
}