fake_notification_interaction_handler.cc 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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_notification_interaction_handler.h"
  5. #include "ash/components/phonehub/notification.h"
  6. namespace ash {
  7. namespace phonehub {
  8. FakeNotificationInteractionHandler::FakeNotificationInteractionHandler() =
  9. default;
  10. FakeNotificationInteractionHandler::~FakeNotificationInteractionHandler() =
  11. default;
  12. void FakeNotificationInteractionHandler::HandleNotificationClicked(
  13. int64_t notification_id,
  14. const Notification::AppMetadata& app_metadata) {
  15. handled_notification_count_++;
  16. }
  17. void FakeNotificationInteractionHandler::AddNotificationClickHandler(
  18. NotificationClickHandler* handler) {
  19. notification_click_handler_count_++;
  20. }
  21. void FakeNotificationInteractionHandler::RemoveNotificationClickHandler(
  22. NotificationClickHandler* handler) {
  23. notification_click_handler_count_--;
  24. }
  25. } // namespace phonehub
  26. } // namespace ash