#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 {
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) { … }
const char kRuntimeTestFileName[] = …;
SharedSwissTableTests<RuntimeTestRunner, kRuntimeTestFileName>
execute_shared_tests_runtime;
}
}
}