blob: 2adee70ae1c99d4e86fb36aec702ae66ba052d44 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <utility>
#include "components/consent_auditor/fake_consent_auditor.h"
namespace consent_auditor {
FakeConsentAuditor::FakeConsentAuditor(
PrefService* pref_service,
syncer::UserEventService* user_event_service)
: ConsentAuditor(pref_service,
/*consent_sync_bridge=*/nullptr,
user_event_service,
/*app_version=*/std::string(),
/*app_locale=*/std::string()) {}
FakeConsentAuditor::~FakeConsentAuditor() {}
void FakeConsentAuditor::RecordGaiaConsent(
const std::string& account_id,
consent_auditor::Feature feature,
const std::vector<int>& description_grd_ids,
int confirmation_grd_id,
consent_auditor::ConsentStatus status) {
account_id_ = account_id;
recorded_id_vectors_.push_back(description_grd_ids);
recorded_confirmation_ids_.push_back(confirmation_grd_id);
recorded_features_.push_back(feature);
recorded_statuses_.push_back(status);
}
} // namespace consent_auditor