StressTests.h
1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// StressTests.h
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
//
// Created by Ben Copsey on 30/10/2009.
// Copyright 2009 All-Seeing Interactive. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ASITestCase.h"
@class ASIHTTPRequest;
@interface MyDelegate : NSObject {
ASIHTTPRequest *request;
}
@property (retain) ASIHTTPRequest *request;
@end
@interface StressTests : ASITestCase {
float progress;
ASIHTTPRequest *cancelRequest;
NSDate *cancelStartDate;
MyDelegate *delegate;
NSLock *createRequestLock;
}
- (void)testCancelQueue;
- (void)testCancelStressTest;
- (void)performCancelRequest;
- (void)testRedirectStressTest;
- (void)performRedirectRequest;
- (void)testSetDelegate;
- (void)performSetDelegateRequest;
- (void)setProgress:(float)newProgress;
@property (retain) ASIHTTPRequest *cancelRequest;
@property (retain) NSDate *cancelStartDate;
@property (retain) MyDelegate *delegate;
@property (retain) NSLock *createRequestLock;
@end