#include "src/heap/memory-measurement-inl.h"
#include "src/heap/memory-measurement.h"
#include "src/objects/smi.h"
#include "test/cctest/cctest.h"
#include "test/cctest/heap/heap-tester.h"
#include "test/cctest/heap/heap-utils.h"
namespace v8 {
namespace internal {
namespace heap {
namespace {
Handle<NativeContext> GetNativeContext(Isolate* isolate,
v8::Local<v8::Context> v8_context) { … }
}
TEST(NativeContextInferrerGlobalObject) { … }
TEST(NativeContextInferrerJSFunction) { … }
TEST(NativeContextInferrerJSObject) { … }
TEST(NativeContextStatsMerge) { … }
TEST(NativeContextStatsArrayBuffers) { … }
namespace {
class TestResource : public v8::String::ExternalStringResource { … };
}
TEST(NativeContextStatsExternalString) { … }
namespace {
class MockPlatform : public TestPlatform { … };
class MockMeasureMemoryDelegate : public v8::MeasureMemoryDelegate { … };
}
TEST_WITH_PLATFORM(RandomizedTimeout, MockPlatform) { … }
TEST(LazyMemoryMeasurement) { … }
TEST(PartiallyInitializedJSFunction) { … }
TEST(PartiallyInitializedContext) { … }
}
}
}