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

Unified Diff: base/test/user_action_tester.h

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 | « base/test/trace_to_file.cc ('k') | base/test/user_action_tester.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/user_action_tester.h
diff --git a/base/test/user_action_tester.h b/base/test/user_action_tester.h
deleted file mode 100644
index 6b0efc5cb47f5d52bbf02949359ffc92775322b3..0000000000000000000000000000000000000000
--- a/base/test/user_action_tester.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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 BASE_TEST_USER_ACTION_TESTER_H_
-#define BASE_TEST_USER_ACTION_TESTER_H_
-
-#include <map>
-#include <string>
-
-#include "base/metrics/user_metrics.h"
-
-namespace base {
-
-// This class observes and collects user action notifications that are sent
-// by the tests, so that they can be examined afterwards for correctness.
-// Note: This class is NOT thread-safe.
-class UserActionTester {
- public:
- UserActionTester();
- ~UserActionTester();
-
- // Returns the number of times the given |user_action| occurred.
- int GetActionCount(const std::string& user_action) const;
-
- // Resets all user action counts to 0.
- void ResetCounts();
-
- private:
- typedef std::map<std::string, int> UserActionCountMap;
-
- // The callback that is notified when a user actions occurs.
- void OnUserAction(const std::string& user_action);
-
- // A map that tracks the number of times a user action has occurred.
- UserActionCountMap count_map_;
-
- // The callback that is added to the global action callback list.
- base::ActionCallback action_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(UserActionTester);
-};
-
-} // namespace base
-
-#endif // BASE_TEST_USER_ACTION_TESTER_H_
« no previous file with comments | « base/test/trace_to_file.cc ('k') | base/test/user_action_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698