// Copyright 2017 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/utils/detachable-vector.h" #include "testing/gtest/include/gtest/gtest.h" namespace v8 { namespace internal { TEST(DetachableVector, ConstructIsEmpty) { … } TEST(DetachableVector, PushAddsElement) { … } TEST(DetachableVector, AfterFreeIsEmpty) { … } // This test relies on ASAN to detect leaks and double-frees. TEST(DetachableVector, DetachLeaksBackingStore) { … } TEST(DetachableVector, PushAndPopWithReallocation) { … } TEST(DetachableVector, ShrinkToFit) { … } } // namespace internal } // namespace v8