chromium/third_party/blink/public/common/privacy_budget/scoped_identifiability_test_sample_collector.h

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

#ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_PRIVACY_BUDGET_SCOPED_IDENTIFIABILITY_TEST_SAMPLE_COLLECTOR_H_
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_PRIVACY_BUDGET_SCOPED_IDENTIFIABILITY_TEST_SAMPLE_COLLECTOR_H_

#include <memory>
#include <vector>

#include "base/component_export.h"
#include "third_party/blink/public/common/privacy_budget/identifiability_sample_collector.h"
#include "third_party/blink/public/common/privacy_budget/scoped_switch_sample_collector.h"

namespace blink {
namespace test {

// An `IdentifiabilitySampleCollector` implementation for testing. Allows
// inspecting recorded metrics.
//
// Instantiating this class automatically sets the per-process
// `IdentifiabilitySampleCollector` to point to the new instance.
//
// Note: Unlike the real collector nothing in this class is thread safe.
class COMPONENT_EXPORT(PRIVACY_BUDGET_TEST_SUPPORT)
    ScopedIdentifiabilityTestSampleCollector
    : public IdentifiabilitySampleCollector {};

}  // namespace test
}  // namespace blink

#endif  // THIRD_PARTY_BLINK_PUBLIC_COMMON_PRIVACY_BUDGET_SCOPED_IDENTIFIABILITY_TEST_SAMPLE_COLLECTOR_H_