chromium/v8/test/unittests/utils/identity-map-unittest.cc

// Copyright 2015 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/identity-map.h"

#include <set>

#include "src/execution/isolate.h"
#include "src/heap/factory-inl.h"
#include "src/objects/heap-number-inl.h"
#include "src/objects/objects.h"
#include "src/zone/zone.h"
#include "test/unittests/heap/heap-utils.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace v8 {
namespace internal {

// Helper for testing. A "friend" of the IdentityMapBase class, it is able to
// "move" objects to simulate GC for testing the internals of the map.
class IdentityMapTester {};

class IdentityMapTest : public TestWithIsolateAndZone {};

TEST_F(IdentityMapTest, Find_smi_not_found) {}

TEST_F(IdentityMapTest, Find_num_not_found) {}

TEST_F(IdentityMapTest, Delete_smi_not_found) {}

TEST_F(IdentityMapTest, Delete_num_not_found) {}

TEST_F(IdentityMapTest, GetFind_smi_0) {}

TEST_F(IdentityMapTest, GetFind_smi_13) {}

TEST_F(IdentityMapTest, GetFind_num_13) {}

TEST_F(IdentityMapTest, Delete_smi_13) {}

TEST_F(IdentityMapTest, Delete_num_13) {}

TEST_F(IdentityMapTest, GetFind_smi_17m) {}

TEST_F(IdentityMapTest, Delete_smi_17m) {}

TEST_F(IdentityMapTest, GetFind_num_1000) {}

TEST_F(IdentityMapTest, Delete_num_1000) {}

TEST_F(IdentityMapTest, GetFind_smi_gc) {}

TEST_F(IdentityMapTest, Delete_smi_gc) {}

TEST_F(IdentityMapTest, GetFind_smi_gc2) {}

TEST_F(IdentityMapTest, Delete_smi_gc2) {}

TEST_F(IdentityMapTest, GetFind_smi_gc_n) {}

TEST_F(IdentityMapTest, Delete_smi_gc_n) {}

TEST_F(IdentityMapTest, GetFind_smi_num_gc_n) {}

TEST_F(IdentityMapTest, Delete_smi_num_gc_n) {}

TEST_F(IdentityMapTest, Delete_smi_resizes) {}

TEST_F(IdentityMapTest, Iterator_smi_num) {}

TEST_F(IdentityMapTest, Iterator_smi_num_gc) {}

TEST_F(IdentityMapTest, IterateCollisions_1) {}
TEST_F(IdentityMapTest, IterateCollisions_2) {}
TEST_F(IdentityMapTest, IterateCollisions_3) {}
TEST_F(IdentityMapTest, IterateCollisions_5) {}
TEST_F(IdentityMapTest, IterateCollisions_7) {}

TEST_F(IdentityMapTest, Collisions_1) {}
TEST_F(IdentityMapTest, Collisions_2) {}
TEST_F(IdentityMapTest, Collisions_3) {}
TEST_F(IdentityMapTest, Collisions_5) {}
TEST_F(IdentityMapTest, Collisions_7) {}
TEST_F(IdentityMapTest, Resize) {}
TEST_F(IdentityMapTest, Rehash) {}

TEST_F(IdentityMapTest, ExplicitGC) {}

TEST_F(IdentityMapTest, GCShortCutting) {}

}  // namespace internal
}  // namespace v8