5#ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_DIGEST_H_
6#define FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_DIGEST_H_
12#include "flutter/fml/macros.h"
13#include "flutter/impeller/golden_tests/working_directory.h"
25 void AddImage(
const std::string& test_name,
26 const std::string& filename,
41 std::string test_name;
45 double max_diff_pixels_percent;
46 int32_t max_color_delta;
50 std::vector<Entry> entries_;
51 std::map<std::string, std::string> dimensions_;
Manages a global variable for tracking instances of golden images.
bool Write(WorkingDirectory *working_directory)
static GoldenDigest * Instance()
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)