chromium/chrome/browser/metrics/structured/test/structured_metrics_mixin.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/metrics/structured/test/structured_metrics_mixin.h"

#include <memory>

#include "base/run_loop.h"
#include "base/test/bind.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
#include "components/metrics/log_decoder.h"
#include "components/metrics/metrics_switches.h"
#include "components/metrics/structured/structured_metrics_features.h"
#include "components/metrics/structured/structured_metrics_service.h"
#include "components/metrics/structured/test/test_event_storage.h"
#include "components/metrics/structured/test/test_key_data_provider.h"
#include "components/metrics_services_manager/metrics_services_manager.h"

namespace {

// Static hwid used for tests to populate the system profile proto.
constexpr char kHwid[] =;

class TestSystemProfileProvider : public metrics::MetricsProvider {};

}  // namespace

namespace metrics::structured {

StructuredMetricsMixin::StructuredMetricsMixin(
    InProcessBrowserTestMixinHost* host,
    bool setup_profile)
    :{}

StructuredMetricsMixin::~StructuredMetricsMixin() {}

void StructuredMetricsMixin::SetUpOnMainThread() {}

StructuredMetricsRecorder* StructuredMetricsMixin::GetRecorder() {}

StructuredMetricsService* StructuredMetricsMixin::GetService() {}

std::optional<StructuredEventProto> StructuredMetricsMixin::FindEvent(
    uint64_t project_name_hash,
    uint64_t event_name_hash) {}

std::vector<StructuredEventProto> StructuredMetricsMixin::FindEvents(
    uint64_t project_name_hash,
    uint64_t event_name_hash) {}

void StructuredMetricsMixin::WaitUntilEventRecorded(uint64_t project_name_hash,
                                                    uint64_t event_name_hash) {}

void StructuredMetricsMixin::WaitUntilKeysReady() {}

void StructuredMetricsMixin::UpdateRecordingState(bool state) {}

std::unique_ptr<ChromeUserMetricsExtension>
StructuredMetricsMixin::GetUmaProto() {}

EventStorage<StructuredEventProto>* StructuredMetricsMixin::GetEventStorage() {}

}  // namespace metrics::structured