Remove existing Skia suppressions
[chromium-blink-merge.git] / ash / test / user_metrics_recorder_test_api.h
blobe52ef0b5acd3fe5662476ca0b5318e7aa3885821
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.
5 #ifndef ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_
6 #define ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_
8 #include "ash/metrics/user_metrics_recorder.h"
9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
12 namespace ash {
13 namespace test {
15 // Test API to access internals of the UserMetricsRecorder class.
16 class UserMetricsRecorderTestAPI {
17 public:
18 UserMetricsRecorderTestAPI();
19 ~UserMetricsRecorderTestAPI();
21 // Accessor to UserMetricsRecorder::RecordPeriodicMetrics().
22 void RecordPeriodicMetrics();
24 // Accessor to UserMetricsRecorder::IsUserInActiveDesktopEnvironment().
25 bool IsUserInActiveDesktopEnvironment() const;
27 private:
28 // The UserMetricsRecorder that |this| is providing internal access to.
29 UserMetricsRecorder user_metrics_recorder_;
31 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorderTestAPI);
34 } // namespace test
35 } // namespace ash
37 #endif // ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_