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

Unified 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 4. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/metrics/user_metrics_recorder_unittest.cc ('k') | ash/test/user_metrics_recorder_test_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/user_metrics_recorder_test_api.h
diff --git a/ash/test/user_metrics_recorder_test_api.h b/ash/test/user_metrics_recorder_test_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..e52ef0b5acd3fe5662476ca0b5318e7aa3885821
--- /dev/null
+++ b/ash/test/user_metrics_recorder_test_api.h
@@ -0,0 +1,37 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_
+#define ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_
+
+#include "ash/metrics/user_metrics_recorder.h"
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace ash {
+namespace test {
+
+// Test API to access internals of the UserMetricsRecorder class.
+class UserMetricsRecorderTestAPI {
+ public:
+ UserMetricsRecorderTestAPI();
+ ~UserMetricsRecorderTestAPI();
+
+ // Accessor to UserMetricsRecorder::RecordPeriodicMetrics().
+ void RecordPeriodicMetrics();
+
+ // Accessor to UserMetricsRecorder::IsUserInActiveDesktopEnvironment().
+ bool IsUserInActiveDesktopEnvironment() const;
+
+ private:
+ // The UserMetricsRecorder that |this| is providing internal access to.
+ UserMetricsRecorder user_metrics_recorder_;
+
+ DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorderTestAPI);
+};
+
+} // namespace test
+} // namespace ash
+
+#endif // ASH_TEST_USER_METRICS_RECORDER_TEST_API_H_
« no previous file with comments | « ash/metrics/user_metrics_recorder_unittest.cc ('k') | ash/test/user_metrics_recorder_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698