required libs:
* ZipArchive - Obj-C impl of zip
* asi-http-request : http request help to assist with asynchoronous downloading of files
* minizip : support for ZipArchive
*
Added default splash screen for iOS app. (using the Wagic background to keep it neutral to module)
TODO: refine handling for iPad splash screen
* add selection screen and input screen for location of downloadable content. (ie core files, image files, etc )
* add support to opt out of backing up to iCloud for core files. Right now iOS will automatically backup all files under Documents folder to iCloud. Consider only allowing player data to be backed up to iCloud. All graphics and other assets are considered volatile.
84 lines
2.3 KiB
Objective-C
Executable File
84 lines
2.3 KiB
Objective-C
Executable File
//
|
|
// ASINetworkQueueTests.h
|
|
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
|
|
//
|
|
// Created by Ben Copsey on 08/11/2008.
|
|
// Copyright 2008 All-Seeing Interactive. All rights reserved.
|
|
//
|
|
|
|
#import "ASITestCase.h"
|
|
|
|
/*
|
|
IMPORTANT
|
|
Code that appears in these tests is not for general purpose use.
|
|
You should not use [networkQueue waitUntilAllOperationsAreFinished] or [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.25]] in your own software.
|
|
They are used here to force a queue to operate synchronously to simplify writing the tests.
|
|
IMPORTANT
|
|
*/
|
|
|
|
@class ASIHTTPRequest;
|
|
@class ASINetworkQueue;
|
|
|
|
@interface ASINetworkQueueTests : ASITestCase {
|
|
ASIHTTPRequest *requestThatShouldFail;
|
|
BOOL complete;
|
|
BOOL request_didfail;
|
|
BOOL request_succeeded;
|
|
float progress;
|
|
int addedRequests;
|
|
|
|
|
|
NSOperationQueue *immediateCancelQueue;
|
|
NSMutableArray *failedRequests;
|
|
NSMutableArray *finishedRequests;
|
|
|
|
ASINetworkQueue *releaseTestQueue;
|
|
ASINetworkQueue *cancelQueue;
|
|
|
|
int authenticationPromptCount;
|
|
|
|
ASINetworkQueue *postQueue;
|
|
|
|
ASINetworkQueue *testNTLMQueue;
|
|
|
|
ASINetworkQueue *addMoreRequestsQueue;
|
|
int requestsFinishedCount;
|
|
|
|
BOOL started;
|
|
BOOL finished;
|
|
BOOL failed;
|
|
BOOL headFailed;
|
|
BOOL receivedResponseHeaders;
|
|
|
|
int queueFinishedCallCount;
|
|
}
|
|
- (void)testFailure;
|
|
- (void)testFailureCancelsOtherRequests;
|
|
- (void)testDownloadProgress;
|
|
- (void)testUploadProgress;
|
|
- (void)testProgressWithAuthentication;
|
|
- (void)testWithNoListener;
|
|
- (void)testPartialResume;
|
|
- (void)testImmediateCancel;
|
|
|
|
- (void)setProgress:(float)newProgress;
|
|
- (void)testSubclass;
|
|
- (void)testQueueReleaseOnRequestComplete;
|
|
- (void)testQueueReleaseOnQueueComplete;
|
|
|
|
- (void)testMultipleDownloadsThrottlingBandwidth;
|
|
- (void)testMultipleUploadsThrottlingBandwidth;
|
|
|
|
- (void)testDelegateAuthenticationCredentialsReuse;
|
|
- (void)testPOSTWithAuthentication;
|
|
- (void)testHEADFailure;
|
|
@property (retain) NSOperationQueue *immediateCancelQueue;
|
|
@property (retain) NSMutableArray *failedRequests;
|
|
@property (retain) NSMutableArray *finishedRequests;
|
|
@property (retain) ASINetworkQueue *releaseTestQueue;
|
|
@property (retain) ASINetworkQueue *cancelQueue;
|
|
@property (retain) ASINetworkQueue *postQueue;
|
|
@property (retain) ASINetworkQueue *testNTLMQueue;
|
|
@property (retain) ASINetworkQueue *addMoreRequestsQueue;
|
|
@end
|