#include "components/metrics/structured/test/test_structured_metrics_provider.h"
#include "base/files/file_path.h"
#include "base/memory/ptr_util.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "components/metrics/structured/test/test_event_storage.h"
#include "components/metrics/structured/test/test_key_data_provider.h"
namespace metrics::structured {
TestStructuredMetricsProvider::TestStructuredMetricsProvider() { … }
TestStructuredMetricsProvider::TestStructuredMetricsProvider(
scoped_refptr<StructuredMetricsRecorder> recorder)
: … { … }
TestStructuredMetricsProvider::~TestStructuredMetricsProvider() { … }
const EventsProto& TestStructuredMetricsProvider::ReadEvents() const { … }
std::optional<const StructuredEventProto*>
TestStructuredMetricsProvider::FindEvent(uint64_t project_name_hash,
uint64_t event_name_hash) { … }
std::vector<const StructuredEventProto*>
TestStructuredMetricsProvider::FindEvents(uint64_t project_name_hash,
uint64_t event_name_hash) { … }
void TestStructuredMetricsProvider::EnableRecording() { … }
void TestStructuredMetricsProvider::DisableRecording() { … }
void TestStructuredMetricsProvider::WaitUntilReady() { … }
void TestStructuredMetricsProvider::SetOnEventsRecordClosure(
base::RepeatingCallback<void(const Event& event)> event_record_callback) { … }
void TestStructuredMetricsProvider::OnEventRecord(const Event& event) { … }
}