esim_test_utils.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  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_SERVICES_CELLULAR_SETUP_ESIM_TEST_UTILS_H_
  5. #define ASH_SERVICES_CELLULAR_SETUP_ESIM_TEST_UTILS_H_
  6. #include "ash/services/cellular_setup/public/mojom/esim_manager.mojom-forward.h"
  7. #include "mojo/public/cpp/bindings/remote.h"
  8. namespace ash::cellular_setup {
  9. // Calls GetProperties on a remote euicc object and waits for
  10. // result. Returns the resulting EuiccProperties structure.
  11. mojom::EuiccPropertiesPtr GetEuiccProperties(
  12. const mojo::Remote<mojom::Euicc>& euicc);
  13. // Calls GetProperties on a remote esim_profile object and waits
  14. // for result. Returns the resulting EuiccProperties structure.
  15. mojom::ESimProfilePropertiesPtr GetESimProfileProperties(
  16. const mojo::Remote<mojom::ESimProfile>& esim_profile);
  17. // Calls GetProfileList on a remote euicc object and waits
  18. // for result. Returns the resulting list of ESimProfile
  19. // pending remotes.
  20. std::vector<mojo::PendingRemote<mojom::ESimProfile>> GetProfileList(
  21. const mojo::Remote<mojom::Euicc>& euicc);
  22. } // namespace ash::cellular_setup
  23. #endif // ASH_SERVICES_CELLULAR_SETUP_ESIM_TEST_UTILS_H_