Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_ | |
| 6 #define ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 | |
| 11 namespace ash { | |
| 12 | |
| 13 class UserMetricsRecorder; | |
| 14 | |
| 15 namespace test { | |
| 16 | |
| 17 // Test API to access internals of the UserMetricsRecorder class. | |
| 18 class UserMetricsRecorderTestAPI { | |
| 19 public: | |
| 20 explicit UserMetricsRecorderTestAPI( | |
| 21 UserMetricsRecorder* user_metrics_recorder); | |
| 22 ~UserMetricsRecorderTestAPI(); | |
| 23 | |
| 24 // Accessor to UserMetricsRecorder::UserMetricsRecorder(bool) constructor. | |
| 25 static scoped_ptr<UserMetricsRecorder> CreateUserMetricsRecorder( | |
| 26 bool record_periodic_metrics); | |
| 27 | |
| 28 // Accessor to UserMetricsRecorder::RecordPeriodicMetrics. | |
|
pkotwicz
2015/04/21 16:15:17
Nit: Add "()" add the end to make it obvious that
bruthig
2015/04/24 20:00:12
Done.
| |
| 29 void RecordPeriodicMetrics(); | |
|
pkotwicz
2015/04/21 16:15:17
Nit: Add "()" add the end to make it obvious that
bruthig
2015/04/24 20:00:12
Assuming this comment was added by mistake...
| |
| 30 | |
| 31 // Accessor to UserMetricsRecorder::IsUserActiveInMultiWindowEnvironment. | |
|
pkotwicz
2015/04/21 16:15:17
Nit: Add "()" add the end to make it obvious that
bruthig
2015/04/24 20:00:12
Done.
| |
| 32 bool IsUserActiveInMultiWindowEnvironment() const; | |
| 33 | |
| 34 private: | |
| 35 // Not owned. | |
| 36 UserMetricsRecorder* user_metrics_recorder_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorderTestAPI); | |
| 39 }; | |
| 40 | |
| 41 } // namespace test | |
| 42 } // namespace ash | |
| 43 | |
| 44 #endif // ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_ | |
| OLD | NEW |