#include "src/handles/persistent-handles.h"
#include "src/heap/parked-scope.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
using PersistentHandlesTest = TestWithIsolate;
TEST_F(PersistentHandlesTest, OrderOfBlocks) { … }
namespace {
class CounterDummyVisitor : public RootVisitor { … };
size_t count_handles(Isolate* isolate) { … }
size_t count_handles(PersistentHandles* ph) { … }
}
TEST_F(PersistentHandlesTest, Iterate) { … }
static constexpr int kNumHandles = …;
class PersistentHandlesThread final : public v8::base::Thread { … };
TEST_F(PersistentHandlesTest, CreatePersistentHandles) { … }
TEST_F(PersistentHandlesTest, DereferencePersistentHandle) { … }
TEST_F(PersistentHandlesTest, DereferencePersistentHandleFailsWhenDisallowed) { … }
TEST_F(PersistentHandlesTest, NewPersistentHandleFailsWhenParked) { … }
TEST_F(PersistentHandlesTest, NewPersistentHandleFailsWhenParkedExplicit) { … }
}
}