#include "components/optimization_guide/core/test_optimization_guide_decider.h"
namespace optimization_guide {
TestOptimizationGuideDecider::TestOptimizationGuideDecider() = default;
TestOptimizationGuideDecider::~TestOptimizationGuideDecider() = default;
void TestOptimizationGuideDecider::RegisterOptimizationTypes(
const std::vector<proto::OptimizationType>& optimization_types) { … }
void TestOptimizationGuideDecider::CanApplyOptimization(
const GURL& url,
proto::OptimizationType optimization_type,
OptimizationGuideDecisionCallback callback) { … }
OptimizationGuideDecision TestOptimizationGuideDecider::CanApplyOptimization(
const GURL& url,
proto::OptimizationType optimization_type,
OptimizationMetadata* optimization_metadata) { … }
void TestOptimizationGuideDecider::CanApplyOptimizationOnDemand(
const std::vector<GURL>& urls,
const base::flat_set<proto::OptimizationType>& optimization_types,
proto::RequestContext request_context,
OnDemandOptimizationGuideDecisionRepeatingCallback callback,
std::optional<proto::RequestContextMetadata> request_context_metadata) { … }
}