5#ifndef FLUTTER_TESTING_TESTING_H_
6#define FLUTTER_TESTING_TESTING_H_
14#include "gtest/gtest.h"
15#include "third_party/skia/include/core/SkData.h"
74 const std::string& fixture_name);
std::string GetCurrentTestName()
Gets the name of the currently running test. This is useful in generating logs or assets based on tes...
std::string GetDefaultKernelFilePath()
Returns the default path to kernel_blob.bin. This file is within the directory returned by GetFixture...
const char * GetFixturesPath()
Returns the directory containing the test fixture for the target if this target has fixtures configur...
bool MemsetPatternSetOrCheck(uint8_t *buffer, size_t size, MemsetPatternOp op)
Depending on the operation, either scribbles a known pattern into the buffer or checks if that patter...
const char * GetSourcePath()
sk_sp< SkData > OpenFixtureAsSkData(const std::string &fixture_name)
Opens a fixture of the given file name and returns a Skia SkData holding its contents.
@ kMemsetPatternOpCheckBuffer
@ kMemsetPatternOpSetBuffer
fml::UniqueFD OpenFixture(const std::string &fixture_name)
Opens a fixture of the given file name.
fml::UniqueFD OpenFixturesDirectory()
Opens the fixtures directory for the unit-test harness.
const char * GetTestingAssetsPath()
Returns the directory containing assets shared across all tests.
std::unique_ptr< fml::Mapping > OpenFixtureAsMapping(const std::string &fixture_name)
Opens a fixture of the given file name and returns a mapping to its contents.
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