diff options
author | bossiel <bossiel@yahoo.fr> | 2011-08-10 22:59:15 +0000 |
---|---|---|
committer | bossiel <bossiel@yahoo.fr> | 2011-08-10 22:59:15 +0000 |
commit | 1ebf5a5fcda0c9154e22ed02404fd46525a7fd9f (patch) | |
tree | 4b6214a7142ab1035cb0e47444e88af38e712421 /xcode/iPhoneOS/tinyNETTest/AppDelegate.m | |
download | doubango-1.0.zip doubango-1.0.tar.gz |
Move deprecated v1.0 from trunk to branches1.0
Diffstat (limited to 'xcode/iPhoneOS/tinyNETTest/AppDelegate.m')
-rw-r--r-- | xcode/iPhoneOS/tinyNETTest/AppDelegate.m | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/xcode/iPhoneOS/tinyNETTest/AppDelegate.m b/xcode/iPhoneOS/tinyNETTest/AppDelegate.m new file mode 100644 index 0000000..6d74f06 --- /dev/null +++ b/xcode/iPhoneOS/tinyNETTest/AppDelegate.m @@ -0,0 +1,85 @@ +#import "AppDelegate.h" + +#include "tsk.h" +#include "tinynet.h" + +#include "test_sockets.h" +#include "test_transport.h" +#include "test_auth.h" +#include "test_stun.h" +#include "test_nat.h" +#include "test_ifaces.h" +#include "test_dns.h" +#include "test_dhcp.h" +#include "test_dhcp6.h" +#include "test_tls.h" + +#define RUN_TEST_ALL 0 +#define RUN_TEST_SOCKETS 0 /* FIXME: Android */ +#define RUN_TEST_TRANSPORT 0 +#define RUN_TEST_AUTH 0 +#define RUN_TEST_STUN 0 +#define RUN_TEST_NAT 0 +#define RUN_TEST_IFACES 0 +#define RUN_TEST_DNS 0 +#define RUN_TEST_DHCP 0 +#define RUN_TEST_DHCP6 1 +#define RUN_TEST_TLS 0 + +@implementation AppDelegate + +@synthesize window; + +- (void)applicationDidFinishLaunching:(UIApplication *)application { + // Override point for customization after application launch + [window makeKeyAndVisible]; +} + +- (void)dealloc { + [window release]; + [super dealloc]; +} + +- (IBAction)start:(id)sender { +#if RUN_TEST_ALL || RUN_TEST_SOCKETS + test_sockets(); +#endif + +#if RUN_TEST_ALL || RUN_TEST_TRANSPORT + test_transport(); +#endif + +#if RUN_TEST_ALL || RUN_TEST_AUTH + test_auth(); +#endif + +#if RUN_TEST_ALL || RUN_TEST_STUN + test_stun(); +#endif + +#if RUN_TEST_ALL || RUN_TEST_NAT + test_nat(); +#endif + +#if RUN_TEST_ALL || RUN_TEST_IFACES + test_ifaces(); +#endif + +#if RUN_TEST_ALL || RUN_TEST_DNS + test_dns(); +#endif + +#if RUN_TEST_ALL || RUN_TEST_DHCP + test_dhcp(); +#endif + +#if RUN_TEST_ALL || RUN_TEST_DHCP6 + test_dhcp6(); +#endif + +#if RUN_TEST_ALL || RUN_TEST_TLS + test_tls(); +#endif +} + +@end |