Manages a global variable for tracking instances of golden images. More...
#include <golden_digest.h>
Public Member Functions | |
void | AddDimension (const std::string &name, const std::string &value) |
void | AddImage (const std::string &test_name, const std::string &filename, int32_t width, int32_t height) |
bool | Write (WorkingDirectory *working_directory) |
Static Public Member Functions | |
static GoldenDigest * | Instance () |
Manages a global variable for tracking instances of golden images.
Definition at line 18 of file golden_digest.h.
void impeller::testing::GoldenDigest::AddDimension | ( | const std::string & | name, |
const std::string & | value | ||
) |
Definition at line 27 of file golden_digest.cc.
References value.
Referenced by impeller::GoldenPlaygroundTest::SetUp(), and impeller::testing::GoldenTests::SetUp().
void impeller::testing::GoldenDigest::AddImage | ( | const std::string & | test_name, |
const std::string & | filename, | ||
int32_t | width, | ||
int32_t | height | ||
) |
Definition at line 34 of file golden_digest.cc.
References kMaxColorDelta, and kMaxDiffPixelsPercent.
Referenced by impeller::GoldenPlaygroundTest::SaveScreenshot().
|
static |
Definition at line 18 of file golden_digest.cc.
Referenced by main(), impeller::GoldenPlaygroundTest::SaveScreenshot(), impeller::GoldenPlaygroundTest::SetUp(), and impeller::testing::GoldenTests::SetUp().
bool impeller::testing::GoldenDigest::Write | ( | WorkingDirectory * | working_directory | ) |
Writes a "digest.json" file to working_directory
.
Returns true
on success.
Definition at line 42 of file golden_digest.cc.
References impeller::testing::WorkingDirectory::GetFilenamePath().
Referenced by main().