Files
waf-platform/EdgeHttpDNS/sdk/ios/AlicloudHttpDNSTests/Testbase/XCTestCase+AsyncTesting.h
2026-02-20 17:56:24 +08:00

29 lines
648 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// TestBase.h
// AlicloudHttpDNS
//
// Created by ElonChan地风 on 2017/4/14.
// Copyright © 2017年 alibaba-inc.com. All rights reserved.
//
#import <XCTest/XCTest.h>
enum {
XCTAsyncTestCaseStatusUnknown = 0,
XCTAsyncTestCaseStatusWaiting,
XCTAsyncTestCaseStatusSucceeded,
XCTAsyncTestCaseStatusFailed,
XCTAsyncTestCaseStatusCancelled,
};
typedef NSUInteger XCTAsyncTestCaseStatus;
@interface XCTestCase (AsyncTesting)
- (void)waitForStatus:(XCTAsyncTestCaseStatus)status timeout:(NSTimeInterval)timeout;
- (void)waitForTimeout:(NSTimeInterval)timeout;
- (void)notify:(XCTAsyncTestCaseStatus)status;
@end