25 map_.
Lookup(
reinterpret_cast<void*
>(
x), hash_(
x),
true);
27 EXPECT_EQ(
reinterpret_cast<void*
>(
x),
p->key);
33 map_.
Remove(
reinterpret_cast<void*
>(
x), hash_(
x));
38 map_.
Lookup(
reinterpret_cast<void*
>(
x), hash_(
x),
false);
40 EXPECT_EQ(
reinterpret_cast<void*
>(
x),
p->key);
53 EXPECT_EQ(map_.occupancy_,
count);
83 EXPECT_EQ(0u,
set.occupancy());
89 EXPECT_EQ(4u,
set.occupancy());
93 EXPECT_EQ(4u,
set.occupancy());
100 EXPECT_EQ(4u,
set.occupancy());
107 EXPECT_EQ(3u,
set.occupancy());
114 EXPECT_EQ(2u,
set.occupancy());
121 EXPECT_EQ(1u,
set.occupancy());
124 EXPECT_EQ(0u,
set.occupancy());
127 const uint32_t
start = 453;
128 const uint32_t factor = 13;
129 const uint32_t
offset = 7;
130 const uint32_t n =
size;
133 for (uint32_t
i = 0;
i < n;
i++) {
134 EXPECT_EQ(
i,
set.occupancy());
138 EXPECT_EQ(n,
set.occupancy());
142 for (uint32_t
i = 0;
i < n;
i++) {
146 EXPECT_EQ(n,
set.occupancy());
150 for (uint32_t
i = 0;
i < n;
i++) {
151 EXPECT_EQ(n -
i,
set.occupancy());
159 for (uint32_t j = 0; j < n; j++) {
168 EXPECT_EQ(0u,
set.occupancy());
static uint32_t hash(const SkShaderBase::GradientInfo &v)
uint32_t occupancy() const
void Clear(ClearFun clear=nullptr)
Entry * Lookup(void *key, uint32_t hash, bool insert)
void Remove(void *key, uint32_t hash)
Entry * Next(Entry *p) const
static uint32_t WordHash(intptr_t key)
static intptr_t kInitialSize
static uint32_t WordHash(uint32_t key)
static uint32_t CollisionHash4(uint32_t key)
static uint32_t CollisionHash3(uint32_t key)
uint32_t(* IntKeyHash)(uint32_t key)
static uint32_t Hash(uint32_t key)
static uint32_t CollisionHash1(uint32_t key)
static uint32_t CollisionHash2(uint32_t key)
void TestSet(IntKeyHash hash, int size)
VM_UNIT_TEST_CASE(DirectoryCurrentNoScope)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set