// // KWAsyncVerifier.h // iOSFalconCore // // Created by Luke Redpath on 13/01/2011. // Copyright 2011 LJR Software Limited. All rights reserved. // #import #import "KWMatchVerifier.h" #import "KWProbe.h" #define kKW_DEFAULT_PROBE_TIMEOUT 1.0 @class KWAsyncMatcherProbe; @interface KWAsyncVerifier : KWMatchVerifier @property (nonatomic, assign) NSTimeInterval timeout; @property (nonatomic, assign) BOOL shouldWait; + (id)asyncVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id)aReporter probeTimeout:(NSTimeInterval)probeTimeout shouldWait:(BOOL)shouldWait; - (void)verifyWithProbe:(KWAsyncMatcherProbe *)aProbe; @end @interface KWAsyncMatcherProbe : NSObject @property (nonatomic, assign) BOOL matchResult; @property (nonatomic, readonly) id matcher; - (id)initWithMatcher:(id)aMatcher; @end