#include "components/ukm/ukm_test_helper.h"
#include <algorithm>
#include <string>
#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "base/run_loop.h"
#include "components/metrics/log_decoder.h"
#include "components/metrics/metrics_logs_event_manager.h"
#include "components/metrics/unsent_log_store.h"
#include "ukm_test_helper.h"
namespace ukm {
UkmTestHelper::UkmTestHelper(UkmService* ukm_service)
: … { … }
bool UkmTestHelper::IsExtensionRecordingEnabled() const { … }
bool UkmTestHelper::IsRecordingEnabled() const { … }
bool UkmTestHelper::IsReportUserNoisedUserBirthYearAndGenderEnabled() { … }
uint64_t UkmTestHelper::GetClientId() { … }
std::unique_ptr<Report> UkmTestHelper::GetUkmReport() { … }
UkmSource* UkmTestHelper::GetSource(SourceId source_id) { … }
bool UkmTestHelper::HasSource(SourceId source_id) { … }
bool UkmTestHelper::IsSourceObsolete(SourceId source_id) { … }
void UkmTestHelper::RecordSourceForTesting(SourceId source_id) { … }
void UkmTestHelper::BuildAndStoreLog() { … }
bool UkmTestHelper::HasUnsentLogs() { … }
void UkmTestHelper::SetMsbbConsent() { … }
void UkmTestHelper::PurgeData() { … }
}