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

Side by Side Diff: ash/test/user_metrics_recorder_test_api.h

Issue 1093483002: Changed when the UMA metric Ash.NumberOfVisibleWindowsInPrimaryDisplay is recorded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from patch set 2. Created 5 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698