Statistics
| Branch: | Revision:

root / asi-http-request-with-pithos / Classes / Tests / StressTests.h @ be116d22

History | View | Annotate | Download (1006 Bytes)

1
//
2
//  StressTests.h
3
//  Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
4
//
5
//  Created by Ben Copsey on 30/10/2009.
6
//  Copyright 2009 All-Seeing Interactive. All rights reserved.
7
//
8

    
9
#import <Foundation/Foundation.h>
10
#import "ASITestCase.h"
11

    
12
@class ASIHTTPRequest;
13

    
14

    
15
@interface MyDelegate : NSObject {
16
        ASIHTTPRequest *request;
17
}
18
@property (retain) ASIHTTPRequest *request;
19
@end
20

    
21
@interface StressTests : ASITestCase {
22
        float progress;
23
        ASIHTTPRequest *cancelRequest;
24
        NSDate *cancelStartDate;
25
        MyDelegate *delegate;
26
        NSLock *createRequestLock;
27
}
28

    
29
- (void)testCancelQueue;
30

    
31
- (void)testCancelStressTest;
32
- (void)performCancelRequest;
33

    
34
- (void)testRedirectStressTest;
35
- (void)performRedirectRequest;
36

    
37
- (void)testSetDelegate;
38
- (void)performSetDelegateRequest;
39

    
40
- (void)setProgress:(float)newProgress;
41

    
42
@property (retain) ASIHTTPRequest *cancelRequest;
43
@property (retain) NSDate *cancelStartDate;
44
@property (retain) MyDelegate *delegate;
45
@property (retain) NSLock *createRequestLock;
46
@end