#include "base/test/metrics/user_action_tester.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "base/test/scoped_mock_clock_override.h"
#include "base/time/time.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
UnorderedElementsAre;
namespace base {
namespace {
const char kUserAction1[] = …;
const char kUserAction2[] = …;
const char kUserAction3[] = …;
void RecordAction(const char user_action[]) { … }
}
TEST(UserActionTesterTest, GetActionCountWhenNoActionsHaveBeenRecorded) { … }
TEST(UserActionTesterTest, GetActionTimesWhenNoActionsHaveBeenRecorded) { … }
TEST(UserActionTesterTest, GetActionCountWhenActionsHaveBeenRecorded) { … }
TEST(UserActionTesterTest, GetActionTimesWhenActionsHaveBeenRecorded) { … }
TEST(UserActionTesterTest, ResetCountsWhenNoActionsHaveBeenRecorded) { … }
TEST(UserActionTesterTest, ResetCountsWhenActionsHaveBeenRecorded) { … }
TEST(UserActionTesterTest, ResetTimesWhenActionsHaveBeenRecorded) { … }
TEST(UserActionTesterTest, VerifyUserActionTesterListensForUserActions) { … }
TEST(UserActionTesterTest,
VerifyUserActionTesterListensForComputedUserActions) { … }
TEST(UserActionTesterTest,
VerifyUserActionTesterListensForComputedUserActionAt) { … }
TEST(UserActionTesterTest,
VerifyUserActionTesterListensForComputedUserActionSince) { … }
}