| Flutter Impeller |

Public Member Functions | List of all members
impeller::testing::GoldenTests Class Reference
Inheritance diagram for impeller::testing::GoldenTests:

## Public Member Functions
| GoldenTests ()
MetalScreenshotter & | Screenshotter ()
void | SetUp () override

## Detailed Description

Definition at line 59 of file golden_tests.cc.

## Constructor & Destructor Documentation

## ◆ GoldenTests()

impeller::testing::GoldenTests::GoldenTests | ( |  | ) |
| inline

Definition at line 61 of file golden_tests.cc.

62 : screenshotter_(new MetalScreenshotter(GetPlaygroundSwitches())) {}

## Member Function Documentation

## ◆ Screenshotter()

MetalScreenshotter& impeller::testing::GoldenTests::Screenshotter | ( |  | ) |
| inline

Definition at line 64 of file golden_tests.cc.

64 { return *screenshotter_; }

Referenced by SetUp().

## ◆ SetUp()

void impeller::testing::GoldenTests::SetUp | ( |  | ) |
| inline override

Definition at line 66 of file golden_tests.cc.

66 {
67 testing::GoldenDigest::Instance()->AddDimension(
68 "gpu_string",
69 Screenshotter().GetPlayground().GetContext()->DescribeGpuModel());
70 }
impeller::testing::GoldenDigest::Instance
static GoldenDigest * Instance()
Definition: golden_digest.cc:18
impeller::testing::GoldenDigest::AddDimension
void AddDimension(const std::string &name, const std::string &value)
Definition: golden_digest.cc:27
impeller::testing::GoldenTests::Screenshotter
MetalScreenshotter & Screenshotter()
Definition: golden_tests.cc:64

References impeller::testing::GoldenDigest::AddDimension(), impeller::testing::GoldenDigest::Instance(), and Screenshotter().

The documentation for this class was generated from the following file:

- impeller/golden_tests/golden_tests.cc