00001
00002
00003
00004
00005
00006
00007
00008
00009 #import "MockProtocol.h"
00010 #import "ASIFormDataRequest.h"
00011 #import "RMCall.h"
00012
00013 @implementation MockProtocol
00014
00015 - (void) adjustRequest:(ASIFormDataRequest *)request
00016 method:(NSString *)method
00017 arguments:(NSDictionary *)arguments
00018 {
00019 [request setURL:
00020 [NSURL URLWithString:@"http://p.webinit.org/wiremoting/mockup.php"]];
00021 [request setPostValue:method forKey:@"_method"];
00022
00023 if (nil != arguments) {
00024 for (NSString *key in [arguments allKeys]) {
00025 [request setPostValue:[arguments valueForKey:key] forKey:key];
00026 }
00027 }
00028 }
00029
00030 - (BOOL)isAsynchronous
00031 {
00032 return NO;
00033 }
00034
00035 @end