14TEST(AllocationTest, ReserveNPOTPotentialOverflow) {
15 std::vector<uint8_t>
data(64, 0xff);
17 auto allocate_and_write = [&](uint64_t
size) {
32 allocate_and_write((1ULL << 32) + 1);
33 allocate_and_write((1ULL << 32) - 1);
38 max_allocation.
Truncate(
Bytes{std::numeric_limits<uint64_t>::max()}));
41TEST(AllocationTest, NextPowerOfTwoSize) {
46 absl::StatusCode::kInvalidArgument);
50 absl::StatusCode::kInvalidArgument);
Describes an allocation on the heap.
uint8_t * GetBuffer() const
Gets the pointer to the start of the allocation.
static absl::StatusOr< uint64_t > NextPowerOfTwoSize(uint64_t x)
Gets the next power of two size.
bool Truncate(Bytes length, bool npot=true)
Resize the underlying allocation to at least given number of bytes.
TEST(FrameTimingsRecorderTest, RecordVsync)
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all 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 data