| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_TEST_SHELF_BUTTON_PRESSED_METRIC_TRACKER_TEST_API_H_ | 5 #ifndef ASH_TEST_SHELF_BUTTON_PRESSED_METRIC_TRACKER_TEST_API_H_ |
| 6 #define ASH_TEST_SHELF_BUTTON_PRESSED_METRIC_TRACKER_TEST_API_H_ | 6 #define ASH_TEST_SHELF_BUTTON_PRESSED_METRIC_TRACKER_TEST_API_H_ |
| 7 | 7 |
| 8 #include "ash/shelf/shelf_button_pressed_metric_tracker.h" | 8 #include "ash/shelf/shelf_button_pressed_metric_tracker.h" |
| 9 | 9 |
| 10 #include <memory> |
| 11 |
| 10 #include "base/macros.h" | 12 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "ui/events/event.h" | 13 #include "ui/events/event.h" |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class TickClock; | 16 class TickClock; |
| 16 } // namespace base | 17 } // namespace base |
| 17 | 18 |
| 18 namespace ash { | 19 namespace ash { |
| 19 namespace test { | 20 namespace test { |
| 20 | 21 |
| 21 class ShelfButtonPressedMetricTrackerTestAPI { | 22 class ShelfButtonPressedMetricTrackerTestAPI { |
| 22 public: | 23 public: |
| 23 explicit ShelfButtonPressedMetricTrackerTestAPI( | 24 explicit ShelfButtonPressedMetricTrackerTestAPI( |
| 24 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker); | 25 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker); |
| 25 ~ShelfButtonPressedMetricTrackerTestAPI(); | 26 ~ShelfButtonPressedMetricTrackerTestAPI(); |
| 26 | 27 |
| 27 // Set's the |tick_clock_| on the internal ShelfButtonPressedMetricTracker. | 28 // Set's the |tick_clock_| on the internal ShelfButtonPressedMetricTracker. |
| 28 void SetTickClock(scoped_ptr<base::TickClock> tick_clock); | 29 void SetTickClock(std::unique_ptr<base::TickClock> tick_clock); |
| 29 | 30 |
| 30 private: | 31 private: |
| 31 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker_; | 32 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker_; |
| 32 | 33 |
| 33 DISALLOW_COPY_AND_ASSIGN(ShelfButtonPressedMetricTrackerTestAPI); | 34 DISALLOW_COPY_AND_ASSIGN(ShelfButtonPressedMetricTrackerTestAPI); |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 } // namespace test | 37 } // namespace test |
| 37 } // namespace ash | 38 } // namespace ash |
| 38 | 39 |
| 39 #endif // ASH_TEST_SHELF_BUTTON_PRESSED_METRIC_TRACKER_TEST_API _H_ | 40 #endif // ASH_TEST_SHELF_BUTTON_PRESSED_METRIC_TRACKER_TEST_API _H_ |
| OLD | NEW |