#include "services/preferences/public/cpp/tracked/mock_validation_delegate.h"
MockValidationDelegateRecord::MockValidationDelegateRecord() = default;
MockValidationDelegateRecord::~MockValidationDelegateRecord() = default;
size_t MockValidationDelegateRecord::CountValidationsOfState(
prefs::mojom::TrackedPreferenceValidationDelegate::ValueState value_state)
const { … }
size_t MockValidationDelegateRecord::CountExternalValidationsOfState(
prefs::mojom::TrackedPreferenceValidationDelegate::ValueState value_state)
const { … }
const MockValidationDelegateRecord::ValidationEvent*
MockValidationDelegateRecord::GetEventForPath(
const std::string& pref_path) const { … }
void MockValidationDelegateRecord::RecordValidation(
const std::string& pref_path,
prefs::mojom::TrackedPreferenceValidationDelegate::ValueState value_state,
prefs::mojom::TrackedPreferenceValidationDelegate::ValueState
external_validation_value_state,
bool is_personal,
prefs::mojom::TrackedPreferenceMetadata::PrefTrackingStrategy strategy) { … }
MockValidationDelegate::MockValidationDelegate(
scoped_refptr<MockValidationDelegateRecord> record)
: … { … }
MockValidationDelegate::~MockValidationDelegate() = default;
void MockValidationDelegate::OnAtomicPreferenceValidation(
const std::string& pref_path,
std::optional<base::Value> value,
prefs::mojom::TrackedPreferenceValidationDelegate::ValueState value_state,
prefs::mojom::TrackedPreferenceValidationDelegate::ValueState
external_validation_value_state,
bool is_personal) { … }
void MockValidationDelegate::OnSplitPreferenceValidation(
const std::string& pref_path,
const std::vector<std::string>& invalid_keys,
const std::vector<std::string>& external_validation_invalid_keys,
prefs::mojom::TrackedPreferenceValidationDelegate::ValueState value_state,
prefs::mojom::TrackedPreferenceValidationDelegate::ValueState
external_validation_value_state,
bool is_personal) { … }