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() const9bool TestEnabledStateProvider::IsConsentGiven() const { 10 return consent_; 11 } 12 IsReportingEnabled() const13bool TestEnabledStateProvider::IsReportingEnabled() const { 14 return enabled_; 15 } 16 17 } // namespace metrics 18