shelf_button_pressed_metric_tracker_test_api.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #ifndef ASH_SHELF_SHELF_BUTTON_PRESSED_METRIC_TRACKER_TEST_API_H_
  5. #define ASH_SHELF_SHELF_BUTTON_PRESSED_METRIC_TRACKER_TEST_API_H_
  6. #include "ash/shelf/shelf_button_pressed_metric_tracker.h"
  7. #include "ui/events/event.h"
  8. namespace base {
  9. class TickClock;
  10. } // namespace base
  11. namespace ash {
  12. class ShelfButtonPressedMetricTrackerTestAPI {
  13. public:
  14. explicit ShelfButtonPressedMetricTrackerTestAPI(
  15. ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker);
  16. ShelfButtonPressedMetricTrackerTestAPI(
  17. const ShelfButtonPressedMetricTrackerTestAPI&) = delete;
  18. ShelfButtonPressedMetricTrackerTestAPI& operator=(
  19. const ShelfButtonPressedMetricTrackerTestAPI&) = delete;
  20. ~ShelfButtonPressedMetricTrackerTestAPI();
  21. // Set's the |tick_clock_| on the internal ShelfButtonPressedMetricTracker.
  22. // This doesn't take the ownership of the clock. |tick_clock| must outlive the
  23. // ShelfButtonPressedMetricTracker instance.
  24. void SetTickClock(const base::TickClock* tick_clock);
  25. private:
  26. ShelfButtonPressedMetricTracker* const shelf_button_pressed_metric_tracker_;
  27. };
  28. } // namespace ash
  29. #endif // ASH_SHELF_SHELF_BUTTON_PRESSED_METRIC_TRACKER_TEST_API_H_