Chromium Code Reviews| 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_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 <memory> | |
|
oshima
2016/04/08 07:09:42
remove this?
| |
| 9 | |
| 8 #include "ash/metrics/user_metrics_recorder.h" | 10 #include "ash/metrics/user_metrics_recorder.h" |
| 9 #include "base/macros.h" | 11 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 | 12 |
| 12 namespace ash { | 13 namespace ash { |
| 13 namespace test { | 14 namespace test { |
| 14 | 15 |
| 15 // Test API to access internals of the UserMetricsRecorder class. | 16 // Test API to access internals of the UserMetricsRecorder class. |
| 16 class UserMetricsRecorderTestAPI { | 17 class UserMetricsRecorderTestAPI { |
| 17 public: | 18 public: |
| 18 UserMetricsRecorderTestAPI(); | 19 UserMetricsRecorderTestAPI(); |
| 19 ~UserMetricsRecorderTestAPI(); | 20 ~UserMetricsRecorderTestAPI(); |
| 20 | 21 |
| 21 // Accessor to UserMetricsRecorder::RecordPeriodicMetrics(). | 22 // Accessor to UserMetricsRecorder::RecordPeriodicMetrics(). |
| 22 void RecordPeriodicMetrics(); | 23 void RecordPeriodicMetrics(); |
| 23 | 24 |
| 24 // Accessor to UserMetricsRecorder::IsUserInActiveDesktopEnvironment(). | 25 // Accessor to UserMetricsRecorder::IsUserInActiveDesktopEnvironment(). |
| 25 bool IsUserInActiveDesktopEnvironment() const; | 26 bool IsUserInActiveDesktopEnvironment() const; |
| 26 | 27 |
| 27 private: | 28 private: |
| 28 // The UserMetricsRecorder that |this| is providing internal access to. | 29 // The UserMetricsRecorder that |this| is providing internal access to. |
| 29 UserMetricsRecorder user_metrics_recorder_; | 30 UserMetricsRecorder user_metrics_recorder_; |
| 30 | 31 |
| 31 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorderTestAPI); | 32 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorderTestAPI); |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 } // namespace test | 35 } // namespace test |
| 35 } // namespace ash | 36 } // namespace ash |
| 36 | 37 |
| 37 #endif // ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_ | 38 #endif // ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_ |
| OLD | NEW |