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 #include "ash/test/shelf_button_pressed_metric_tracker_test_api.h" | 5 #include "ash/test/shelf_button_pressed_metric_tracker_test_api.h" |
6 | 6 |
7 #include "base/time/tick_clock.h" | 7 #include "base/time/tick_clock.h" |
8 | 8 |
9 namespace ash { | 9 namespace ash { |
10 namespace test { | 10 namespace test { |
11 | 11 |
12 ShelfButtonPressedMetricTrackerTestAPI::ShelfButtonPressedMetricTrackerTestAPI( | 12 ShelfButtonPressedMetricTrackerTestAPI::ShelfButtonPressedMetricTrackerTestAPI( |
13 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker) | 13 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker) |
14 : shelf_button_pressed_metric_tracker_( | 14 : shelf_button_pressed_metric_tracker_( |
15 shelf_button_pressed_metric_tracker) { | 15 shelf_button_pressed_metric_tracker) {} |
16 } | |
17 | 16 |
18 ShelfButtonPressedMetricTrackerTestAPI:: | 17 ShelfButtonPressedMetricTrackerTestAPI:: |
19 ~ShelfButtonPressedMetricTrackerTestAPI() { | 18 ~ShelfButtonPressedMetricTrackerTestAPI() {} |
20 } | |
21 | 19 |
22 void ShelfButtonPressedMetricTrackerTestAPI::SetTickClock( | 20 void ShelfButtonPressedMetricTrackerTestAPI::SetTickClock( |
23 std::unique_ptr<base::TickClock> tick_clock) { | 21 std::unique_ptr<base::TickClock> tick_clock) { |
24 shelf_button_pressed_metric_tracker_->tick_clock_.reset(tick_clock.release()); | 22 shelf_button_pressed_metric_tracker_->tick_clock_.reset(tick_clock.release()); |
25 } | 23 } |
26 | 24 |
27 } // namespace test | 25 } // namespace test |
28 } // namespace ash | 26 } // namespace ash |
OLD | NEW |