main
 1//
 2//  KWAsyncVerifier.h
 3//  iOSFalconCore
 4//
 5//  Created by Luke Redpath on 13/01/2011.
 6//  Copyright 2011 LJR Software Limited. All rights reserved.
 7//
 8
 9#import <Foundation/Foundation.h>
10#import "KWMatchVerifier.h"
11#import "KWProbe.h"
12
13#define kKW_DEFAULT_PROBE_TIMEOUT 1.0
14
15@class KWAsyncMatcherProbe;
16
17@interface KWAsyncVerifier : KWMatchVerifier
18{
19  NSTimeInterval timeout;
20}
21@property (nonatomic, assign) NSTimeInterval timeout;
22
23+ (id)asyncVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id<KWReporting>)aReporter probeTimeout:(NSTimeInterval)probeTimeout;
24- (void)verifyWithProbe:(KWAsyncMatcherProbe *)aProbe;
25@end
26
27@interface KWAsyncMatcherProbe : NSObject <KWProbe>
28{
29  id<KWMatching> matcher;
30  BOOL matchResult;
31}
32@property (nonatomic, readonly) id<KWMatching> matcher;
33
34- (id)initWithMatcher:(id<KWMatching>)aMatcher;
35@end