#include "ui/base/test/skia_gold_matching_algorithm.h"
#include "base/command_line.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
namespace ui {
namespace {
constexpr char kMaxDifferentPixels[] = …;
constexpr char kPixelDeltaThreshold[] = …;
constexpr char kEdgeThreshold[] = …;
constexpr char kIgnoredBorderThickness[] = …;
}
namespace test {
SkiaGoldMatchingAlgorithm::SkiaGoldMatchingAlgorithm() = default;
SkiaGoldMatchingAlgorithm::~SkiaGoldMatchingAlgorithm() = default;
void SkiaGoldMatchingAlgorithm::AppendAlgorithmToCmdline(
base::CommandLine& cmd) const { … }
ExactSkiaGoldMatchingAlgorithm::ExactSkiaGoldMatchingAlgorithm() = default;
ExactSkiaGoldMatchingAlgorithm::~ExactSkiaGoldMatchingAlgorithm() = default;
std::string ExactSkiaGoldMatchingAlgorithm::GetCommandLineSwitchName() const { … }
void ExactSkiaGoldMatchingAlgorithm::AppendAlgorithmToCmdline(
base::CommandLine& cmd) const { … }
FuzzySkiaGoldMatchingAlgorithm::~FuzzySkiaGoldMatchingAlgorithm() = default;
std::string FuzzySkiaGoldMatchingAlgorithm::GetCommandLineSwitchName() const { … }
FuzzySkiaGoldMatchingAlgorithm::FuzzySkiaGoldMatchingAlgorithm(
int max_different_pixels,
int pixel_delta_threshold,
int ignored_border_thickness)
: … { … }
void FuzzySkiaGoldMatchingAlgorithm::AppendAlgorithmToCmdline(
base::CommandLine& cmd) const { … }
SobelSkiaGoldMatchingAlgorithm::~SobelSkiaGoldMatchingAlgorithm() = default;
std::string SobelSkiaGoldMatchingAlgorithm::GetCommandLineSwitchName() const { … }
SobelSkiaGoldMatchingAlgorithm::SobelSkiaGoldMatchingAlgorithm(
int max_different_pixels,
int pixel_delta_threshold,
int edge_threshold,
int ignored_border_thickness)
: … { … }
void SobelSkiaGoldMatchingAlgorithm::AppendAlgorithmToCmdline(
base::CommandLine& cmd) const { … }
PositiveIfOnlyImageAlgorithm::PositiveIfOnlyImageAlgorithm() = default;
PositiveIfOnlyImageAlgorithm::~PositiveIfOnlyImageAlgorithm() = default;
void PositiveIfOnlyImageAlgorithm::AppendAlgorithmToCmdline(
base::CommandLine& cmd) const { … }
std::string PositiveIfOnlyImageAlgorithm::GetCommandLineSwitchName() const { … }
}
}