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/user_metrics_recorder_test_api.h" | 5 #include "ash/test/user_metrics_recorder_test_api.h" |
6 | 6 |
7 namespace ash { | 7 namespace ash { |
8 namespace test { | 8 namespace test { |
9 | 9 |
10 UserMetricsRecorderTestAPI::UserMetricsRecorderTestAPI() | 10 UserMetricsRecorderTestAPI::UserMetricsRecorderTestAPI() |
11 : user_metrics_recorder_(false) { | 11 : user_metrics_recorder_(false) {} |
12 } | |
13 | 12 |
14 UserMetricsRecorderTestAPI::~UserMetricsRecorderTestAPI() { | 13 UserMetricsRecorderTestAPI::~UserMetricsRecorderTestAPI() {} |
15 } | |
16 | 14 |
17 void UserMetricsRecorderTestAPI::RecordPeriodicMetrics() { | 15 void UserMetricsRecorderTestAPI::RecordPeriodicMetrics() { |
18 user_metrics_recorder_.RecordPeriodicMetrics(); | 16 user_metrics_recorder_.RecordPeriodicMetrics(); |
19 } | 17 } |
20 | 18 |
21 bool UserMetricsRecorderTestAPI::IsUserInActiveDesktopEnvironment() const { | 19 bool UserMetricsRecorderTestAPI::IsUserInActiveDesktopEnvironment() const { |
22 return user_metrics_recorder_.IsUserInActiveDesktopEnvironment(); | 20 return user_metrics_recorder_.IsUserInActiveDesktopEnvironment(); |
23 } | 21 } |
24 | 22 |
25 } // namespace test | 23 } // namespace test |
26 } // namespace ash | 24 } // namespace ash |
OLD | NEW |