fake_intent_helper_host.cc 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Copyright 2022 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 "components/arc/test/fake_intent_helper_host.h"
  5. namespace arc {
  6. FakeIntentHelperHost::FakeIntentHelperHost(
  7. ConnectionHolder<arc::mojom::IntentHelperInstance,
  8. arc::mojom::IntentHelperHost>*
  9. intent_helper_connection_holder)
  10. : intent_helper_connection_holder_(intent_helper_connection_holder) {
  11. intent_helper_connection_holder_->SetHost(this);
  12. }
  13. FakeIntentHelperHost::~FakeIntentHelperHost() {
  14. intent_helper_connection_holder_->SetHost(nullptr);
  15. }
  16. void FakeIntentHelperHost::OnIconInvalidated(const std::string& package_name) {}
  17. void FakeIntentHelperHost::OnIntentFiltersUpdated(
  18. std::vector<IntentFilter> intent_filters) {}
  19. void FakeIntentHelperHost::OnOpenDownloads() {}
  20. void FakeIntentHelperHost::OnOpenUrl(const std::string& url) {}
  21. void FakeIntentHelperHost::OnOpenCustomTab(const std::string& url,
  22. int32_t task_id,
  23. OnOpenCustomTabCallback callback) {}
  24. void FakeIntentHelperHost::OnOpenChromePage(mojom::ChromePage page) {}
  25. void FakeIntentHelperHost::FactoryResetArc() {}
  26. void FakeIntentHelperHost::OpenWallpaperPicker() {}
  27. void FakeIntentHelperHost::OpenVolumeControl() {}
  28. void FakeIntentHelperHost::OnOpenWebApp(const std::string& url) {}
  29. void FakeIntentHelperHost::RecordShareFilesMetricsDeprecated(
  30. mojom::ShareFiles flag) {}
  31. void FakeIntentHelperHost::LaunchCameraApp(uint32_t intent_id,
  32. arc::mojom::CameraIntentMode mode,
  33. bool should_handle_result,
  34. bool should_down_scale,
  35. bool is_secure,
  36. int32_t task_id) {}
  37. void FakeIntentHelperHost::OnIntentFiltersUpdatedForPackage(
  38. const std::string& package_name,
  39. std::vector<IntentFilter> intent_filters) {}
  40. void FakeIntentHelperHost::CloseCameraApp() {}
  41. void FakeIntentHelperHost::IsChromeAppEnabled(
  42. arc::mojom::ChromeApp app,
  43. IsChromeAppEnabledCallback callback) {}
  44. void FakeIntentHelperHost::OnSupportedLinksChanged(
  45. std::vector<arc::mojom::SupportedLinksPtr> added_packages,
  46. std::vector<arc::mojom::SupportedLinksPtr> removed_packages,
  47. arc::mojom::SupportedLinkChangeSource source) {}
  48. void FakeIntentHelperHost::OnDownloadAdded(
  49. const std::string& relative_path,
  50. const std::string& owner_package_name) {}
  51. void FakeIntentHelperHost::OnOpenAppWithIntent(
  52. const GURL& start_url,
  53. arc::mojom::LaunchIntentPtr intent) {}
  54. void FakeIntentHelperHost::OnOpenGlobalActions() {}
  55. void FakeIntentHelperHost::OnCloseSystemDialogs() {}
  56. } // namespace arc