stub_multidevice_util.h 1.0 KB

123456789101112131415161718192021222324252627
  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_MULTIDEVICE_STUB_MULTIDEVICE_UTIL_H_
  5. #define ASH_COMPONENTS_MULTIDEVICE_STUB_MULTIDEVICE_UTIL_H_
  6. #include "ash/components/multidevice/remote_device.h"
  7. namespace ash::multidevice {
  8. // Returns a fake host phone with all host features enabled. Can be used as a
  9. // stub remote device to fake out multidevice features.
  10. RemoteDevice CreateStubHostPhone();
  11. // Returns a fake client computer with the client features enabled according to
  12. // their corresponding flags. Can be used as a stub remote device to fake out
  13. // multidevice features.
  14. RemoteDevice CreateStubClientComputer();
  15. // Returns if we should use stubbed implementations of multidevice features,
  16. // i.e. when we are running a Linux CrOS build that doesn't support them.
  17. bool ShouldUseMultideviceStubs();
  18. } // namespace ash::multidevice
  19. #endif // ASH_COMPONENTS_MULTIDEVICE_STUB_MULTIDEVICE_UTIL_H_