SRAutobahnUtilities.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // Copyright (c) 2016-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 Foundation;
  10. NS_ASSUME_NONNULL_BEGIN
  11. ///--------------------------------------
  12. #pragma mark - Test Configuration
  13. ///--------------------------------------
  14. extern NSString *SRAutobahnTestAgentName(void);
  15. extern NSURL *SRAutobahnTestServerURL(void);
  16. ///--------------------------------------
  17. #pragma mark - Validation
  18. ///--------------------------------------
  19. extern NSDictionary<NSString *, id> *SRAutobahnTestConfiguration(void);
  20. extern BOOL SRAutobahnIsValidResultBehavior(NSString *caseIdentifier, NSString *behavior);
  21. ///--------------------------------------
  22. #pragma mark - Utilities
  23. ///--------------------------------------
  24. extern BOOL SRRunLoopRunUntil(BOOL (^predicate)(), NSTimeInterval timeout);
  25. ///--------------------------------------
  26. #pragma mark - Setup
  27. ///--------------------------------------
  28. extern NSUInteger SRAutobahnTestCaseCount(void);
  29. extern NSDictionary<NSString *, id> *SRAutobahnTestCaseInfo(NSInteger caseNumber);
  30. NS_ASSUME_NONNULL_END