#include "src/execution/isolate.h"
#include "include/libplatform/libplatform.h"
#include "include/v8-platform.h"
#include "include/v8-template.h"
#include "src/base/platform/semaphore.h"
#include "src/init/v8.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
using IsolateTest = TestWithIsolate;
namespace {
class MemoryPressureTask : public v8::Task { … };
}
TEST_F(IsolateTest, MemoryPressureNotificationForeground) { … }
TEST_F(IsolateTest, MemoryPressureNotificationBackground) { … }
using IncumbentContextTest = TestWithIsolate;
TEST_F(IncumbentContextTest, Basic) { … }
namespace {
thread_local std::multimap<v8::CrashKeyId, std::string> crash_keys;
void CrashKeyCallback(v8::CrashKeyId id, const std::string& value) { … }
}
TEST_F(IsolateTest, SetAddCrashKeyCallback) { … }
}