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

Side by Side Diff: ash/test/user_metrics_recorder_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
« no previous file with comments | « ash/test/test_suite.h ('k') | ash/tooltips/tooltip_controller_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_USER_METRICS_RECORDER_TEST_API_H_ 5 #ifndef ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_
6 #define ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_ 6 #define ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_
7 7
8 #include "ash/metrics/user_metrics_recorder.h" 8 #include "ash/metrics/user_metrics_recorder.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 10
12 namespace ash { 11 namespace ash {
13 namespace test { 12 namespace test {
14 13
15 // Test API to access internals of the UserMetricsRecorder class. 14 // Test API to access internals of the UserMetricsRecorder class.
16 class UserMetricsRecorderTestAPI { 15 class UserMetricsRecorderTestAPI {
17 public: 16 public:
18 UserMetricsRecorderTestAPI(); 17 UserMetricsRecorderTestAPI();
19 ~UserMetricsRecorderTestAPI(); 18 ~UserMetricsRecorderTestAPI();
20 19
21 // Accessor to UserMetricsRecorder::RecordPeriodicMetrics(). 20 // Accessor to UserMetricsRecorder::RecordPeriodicMetrics().
22 void RecordPeriodicMetrics(); 21 void RecordPeriodicMetrics();
23 22
24 // Accessor to UserMetricsRecorder::IsUserInActiveDesktopEnvironment(). 23 // Accessor to UserMetricsRecorder::IsUserInActiveDesktopEnvironment().
25 bool IsUserInActiveDesktopEnvironment() const; 24 bool IsUserInActiveDesktopEnvironment() const;
26 25
27 private: 26 private:
28 // The UserMetricsRecorder that |this| is providing internal access to. 27 // The UserMetricsRecorder that |this| is providing internal access to.
29 UserMetricsRecorder user_metrics_recorder_; 28 UserMetricsRecorder user_metrics_recorder_;
30 29
31 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorderTestAPI); 30 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorderTestAPI);
32 }; 31 };
33 32
34 } // namespace test 33 } // namespace test
35 } // namespace ash 34 } // namespace ash
36 35
37 #endif // ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_ 36 #endif // ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/test/test_suite.h ('k') | ash/tooltips/tooltip_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698