xref: /aosp_15_r20/external/cronet/components/metrics/test/test_enabled_state_provider.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2016 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "components/metrics/test/test_enabled_state_provider.h"
6 
7 namespace metrics {
8 
IsConsentGiven() const9 bool TestEnabledStateProvider::IsConsentGiven() const {
10   return consent_;
11 }
12 
IsReportingEnabled() const13 bool TestEnabledStateProvider::IsReportingEnabled() const {
14   return enabled_;
15 }
16 
17 }  // namespace metrics
18