FBXCTestDaemonsProxy.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <XCTest/XCTest.h>
  10. #if !TARGET_OS_TV
  11. #import <CoreLocation/CoreLocation.h>
  12. #endif
  13. #import "XCSynthesizedEventRecord.h"
  14. NS_ASSUME_NONNULL_BEGIN
  15. @protocol XCTestManager_ManagerInterface;
  16. @class FBScreenRecordingRequest, FBScreenRecordingPromise;
  17. @interface FBXCTestDaemonsProxy : NSObject
  18. + (id<XCTestManager_ManagerInterface>)testRunnerProxy;
  19. + (BOOL)synthesizeEventWithRecord:(XCSynthesizedEventRecord *)record
  20. error:(NSError *__autoreleasing*)error;
  21. + (BOOL)openURL:(NSURL *)url usingApplication:(NSString *)bundleId error:(NSError **)error;
  22. + (BOOL)openDefaultApplicationForURL:(NSURL *)url error:(NSError **)error;
  23. + (nullable FBScreenRecordingPromise *)startScreenRecordingWithRequest:(FBScreenRecordingRequest *)request
  24. error:(NSError **)error;
  25. + (BOOL)stopScreenRecordingWithUUID:(NSUUID *)uuid
  26. error:(NSError **)error;
  27. #if !TARGET_OS_TV
  28. + (BOOL)setSimulatedLocation:(CLLocation *)location error:(NSError **)error;
  29. + (nullable CLLocation *)getSimulatedLocation:(NSError **)error;
  30. + (BOOL)clearSimulatedLocation:(NSError **)error;
  31. #endif
  32. @end
  33. NS_ASSUME_NONNULL_END