test_enabled_state_provider.cc 437 B

1234567891011121314151617
  1. // Copyright 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/metrics/test/test_enabled_state_provider.h"
  5. namespace metrics {
  6. bool TestEnabledStateProvider::IsConsentGiven() const {
  7. return consent_;
  8. }
  9. bool TestEnabledStateProvider::IsReportingEnabled() const {
  10. return enabled_;
  11. }
  12. } // namespace metrics