FBBaseActionsParser.m 830 B

1234567891011121314151617181920212223242526272829303132
  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 "FBBaseActionsSynthesizer.h"
  10. #import "FBErrorBuilder.h"
  11. @implementation FBBaseActionsSynthesizer
  12. - (instancetype)initWithActions:(NSArray *)actions forApplication:(XCUIApplication *)application
  13. {
  14. self = [super init];
  15. if (self) {
  16. _actions = actions;
  17. _application = application;
  18. }
  19. return self;
  20. }
  21. - (nullable XCSynthesizedEventRecord *)synthesizeWithError:(NSError **)error
  22. {
  23. @throw [[FBErrorBuilder.builder withDescription:@"Override this method in subclasses"] build];
  24. return nil;
  25. }
  26. @end