fake_user_action_recorder.cc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright 2020 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. #include "ash/components/phonehub/fake_user_action_recorder.h"
  5. namespace ash {
  6. namespace phonehub {
  7. FakeUserActionRecorder::FakeUserActionRecorder() = default;
  8. FakeUserActionRecorder::~FakeUserActionRecorder() = default;
  9. void FakeUserActionRecorder::RecordUiOpened() {
  10. ++num_ui_opened_events_;
  11. }
  12. void FakeUserActionRecorder::RecordTetherConnectionAttempt() {
  13. ++num_tether_attempts_;
  14. }
  15. void FakeUserActionRecorder::RecordDndAttempt() {
  16. ++num_dnd_attempts_;
  17. }
  18. void FakeUserActionRecorder::RecordFindMyDeviceAttempt() {
  19. ++num_find_my_device_attempts_;
  20. }
  21. void FakeUserActionRecorder::RecordBrowserTabOpened() {
  22. ++num_browser_tabs_opened_;
  23. }
  24. void FakeUserActionRecorder::RecordNotificationDismissAttempt() {
  25. ++num_notification_dismissals_;
  26. }
  27. void FakeUserActionRecorder::RecordNotificationReplyAttempt() {
  28. ++num_notification_replies_;
  29. }
  30. void FakeUserActionRecorder::RecordCameraRollDownloadAttempt() {
  31. ++num_camera_roll_downloads_;
  32. }
  33. } // namespace phonehub
  34. } // namespace ash