5#include "flutter/fml/time/time_point.h"
7#include "flutter/testing/test_args.h"
19 GTEST_SKIP_(
"Playground doesn't support this backend type.");
24 GTEST_SKIP_(
"Skipping due to user action.");
40 std::string asset_name)
const {
46 stream <<
"Impeller Playground for '" << test_name <<
"' (Press ESC to quit)";
TimeDelta ToEpochDelta() const
virtual ~ComputePlaygroundTest()
std::string GetWindowTitle() const override
std::unique_ptr< fml::Mapping > OpenAssetAsMapping(std::string asset_name) const override
static bool ShouldOpenNewPlaygrounds()
void SetupContext(PlaygroundBackend backend, const PlaygroundSwitches &switches)
const PlaygroundSwitches switches_
static bool SupportsBackend(PlaygroundBackend backend)
std::string GetCurrentTestName()
Gets the name of the currently running test. This is useful in generating logs or assets based on tes...
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.
const fml::CommandLine & GetArgsForProcess()
static std::string FormatWindowTitle(const std::string &test_name)