XCUIApplicationDouble.m 973 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 "XCUIApplicationDouble.h"
  10. @interface XCUIApplicationDouble ()
  11. @property (nonatomic, assign, readwrite) BOOL didTerminate;
  12. @end
  13. @implementation XCUIApplicationDouble
  14. - (instancetype)init
  15. {
  16. self = [super init];
  17. if (self) {
  18. _bundleID = @"some.bundle.identifier";
  19. }
  20. return self;
  21. }
  22. - (void)terminate
  23. {
  24. self.didTerminate = YES;
  25. }
  26. - (NSUInteger)processID
  27. {
  28. return 0;
  29. }
  30. - (NSString *)bundleID
  31. {
  32. return @"com.facebook.awesome";
  33. }
  34. - (void)fb_nativeResolve
  35. {
  36. }
  37. - (id)query
  38. {
  39. return nil;
  40. }
  41. - (BOOL)fb_shouldWaitForQuiescence
  42. {
  43. return NO;
  44. }
  45. -(void)setFb_shouldWaitForQuiescence:(BOOL)value
  46. {
  47. }
  48. - (BOOL)running
  49. {
  50. return NO;
  51. }
  52. @end