phone_model_test_util.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #ifndef ASH_COMPONENTS_PHONEHUB_PHONE_MODEL_TEST_UTIL_H_
  5. #define ASH_COMPONENTS_PHONEHUB_PHONE_MODEL_TEST_UTIL_H_
  6. #include <stdint.h>
  7. #include "ash/components/phonehub/browser_tabs_model.h"
  8. #include "ash/components/phonehub/notification.h"
  9. #include "ash/components/phonehub/phone_status_model.h"
  10. #include "base/time/time.h"
  11. namespace ash {
  12. namespace phonehub {
  13. // Fake data for phone status.
  14. extern const char16_t kFakeMobileProviderName[];
  15. // Creates fake phone status data for use in tests.
  16. const PhoneStatusModel::MobileConnectionMetadata&
  17. CreateFakeMobileConnectionMetadata();
  18. const PhoneStatusModel& CreateFakePhoneStatusModel();
  19. // Fake data for browser tabs.
  20. extern const char kFakeBrowserTabUrl1[];
  21. extern const char16_t kFakeBrowserTabName1[];
  22. extern const base::Time kFakeBrowserTabLastAccessedTimestamp1;
  23. extern const char kFakeBrowserTabUrl2[];
  24. extern const char16_t kFakeBrowserTabName2[];
  25. extern const base::Time kFakeBrowserTabLastAccessedTimestamp2;
  26. // Creates fake browser tab data for use in tests.
  27. const BrowserTabsModel::BrowserTabMetadata& CreateFakeBrowserTabMetadata();
  28. const BrowserTabsModel& CreateFakeBrowserTabsModel();
  29. // Fake data for notifications.
  30. extern const char16_t kFakeAppVisibleName[];
  31. extern const char kFakeAppPackageName[];
  32. extern const int64_t kFakeAppId;
  33. extern const int64_t kFakeInlineReplyId;
  34. extern const char16_t kFakeNotificationTitle[];
  35. extern const char16_t kFakeNotificationText[];
  36. // Creates fake notification data for use in tests.
  37. const Notification::AppMetadata& CreateFakeAppMetadata();
  38. const Notification& CreateFakeNotification();
  39. } // namespace phonehub
  40. } // namespace ash
  41. #endif // ASH_COMPONENTS_PHONEHUB_PHONE_MODEL_TEST_UTIL_H_