chromium/v8/test/unittests/heap/persistent-handles-unittest.cc

// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}
}  // namespace

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) {}

}  // namespace internal
}  // namespace v8