Flutter Engine
testing.cc File Reference
#include "testing.h"
#include "flutter/fml/file.h"

Go to the source code of this file.

Namespaces

 flutter
 
 flutter::testing
 

Functions

std::string flutter::testing::GetCurrentTestName ()
 Gets the name of the currently running test. This is useful in generating logs or assets based on test name. More...
 
fml::UniqueFD flutter::testing::OpenFixturesDirectory ()
 Opens the fixtures directory for the unit-test harness. More...
 
fml::UniqueFD flutter::testing::OpenFixture (std::string fixture_name)
 Opens a fixture of the given file name. More...
 
std::unique_ptr< fml::Mappingflutter::testing::OpenFixtureAsMapping (std::string fixture_name)
 Opens a fixture of the given file name and returns a mapping to its contents. More...
 
bool flutter::testing::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 pattern is present in an existing buffer. This is a portable variant of the memset_pattern class of methods that also happen to do assert that the same pattern exists. More...
 
bool flutter::testing::MemsetPatternSetOrCheck (std::vector< uint8_t > &buffer, MemsetPatternOp op)