Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: ash/test/shelf_button_pressed_metric_tracker_test_api.h

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « ash/test/mirror_window_test_api.h ('k') | ash/test/shelf_button_pressed_metric_tracker_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698