#include <cmath>
#include <iostream>
#include <limits>
#include "src/objects/objects-inl.h"
#include "src/objects/objects.h"
#include "src/handles/handles-inl.h"
#include "src/handles/handles.h"
#include "src/heap/heap-controller.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
using MemoryControllerTest = TestWithIsolate;
double Round(double x) { … }
void CheckEqualRounded(double expected, double actual) { … }
namespace {
V8Controller;
}
TEST_F(MemoryControllerTest, HeapGrowingFactor) { … }
TEST_F(MemoryControllerTest, MaxHeapGrowingFactor) { … }
TEST_F(MemoryControllerTest, OldGenerationAllocationLimit) { … }
}
}