chromium/v8/test/cctest/test-swiss-name-dictionary.cc

// Copyright 2021 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 <optional>

#include "src/objects/swiss-name-dictionary-inl.h"
#include "test/cctest/cctest.h"
#include "test/cctest/test-swiss-name-dictionary-infra.h"
#include "test/cctest/test-swiss-name-dictionary-shared-tests.h"

namespace v8 {
namespace internal {
namespace test_swiss_hash_table {

// Executes tests by executing C++ versions of dictionary operations.
class RuntimeTestRunner {};

void RuntimeTestRunner::Add(DirectHandle<Name> key, DirectHandle<Object> value,
                            PropertyDetails details) {}

InternalIndex RuntimeTestRunner::FindEntry(DirectHandle<Name> key) {}

Handle<FixedArray> RuntimeTestRunner::GetData(InternalIndex entry) {}

void RuntimeTestRunner::Put(InternalIndex entry, DirectHandle<Object> new_value,
                            PropertyDetails new_details) {}

void RuntimeTestRunner::Delete(InternalIndex entry) {}

void RuntimeTestRunner::CheckCounts(std::optional<int> capacity,
                                    std::optional<int> elements,
                                    std::optional<int> deleted) {}

void RuntimeTestRunner::CheckEnumerationOrder(
    const std::vector<std::string>& expected_keys) {}

void RuntimeTestRunner::RehashInplace() {}

void RuntimeTestRunner::Shrink() {}

void RuntimeTestRunner::CheckCopy() {}

void RuntimeTestRunner::VerifyHeap() {}

void RuntimeTestRunner::PrintTable() {}

TEST(CapacityFor) {}

TEST(MaxUsableCapacity) {}

TEST(SizeFor) {}

// Executes the tests defined in test-swiss-name-dictionary-shared-tests.h as if
// they were defined in this file, using the RuntimeTestRunner. See comments in
// test-swiss-name-dictionary-shared-tests.h and in
// swiss-name-dictionary-infra.h for details.
const char kRuntimeTestFileName[] =;
SharedSwissTableTests<RuntimeTestRunner, kRuntimeTestFileName>
    execute_shared_tests_runtime;

}  // namespace test_swiss_hash_table
}  // namespace internal
}  // namespace v8