shelf_button_pressed_metric_tracker_test_api.cc 824 B

123456789101112131415161718192021222324
  1. // Copyright 2015 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 "ash/shelf/shelf_button_pressed_metric_tracker_test_api.h"
  5. #include "base/time/tick_clock.h"
  6. namespace ash {
  7. ShelfButtonPressedMetricTrackerTestAPI::ShelfButtonPressedMetricTrackerTestAPI(
  8. ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker)
  9. : shelf_button_pressed_metric_tracker_(
  10. shelf_button_pressed_metric_tracker) {}
  11. ShelfButtonPressedMetricTrackerTestAPI::
  12. ~ShelfButtonPressedMetricTrackerTestAPI() = default;
  13. void ShelfButtonPressedMetricTrackerTestAPI::SetTickClock(
  14. const base::TickClock* tick_clock) {
  15. shelf_button_pressed_metric_tracker_->tick_clock_ = tick_clock;
  16. }
  17. } // namespace ash