From 2eb356a68d981b87329cdbaf1ce46380b2362296 Mon Sep 17 00:00:00 2001 From: nealsid Date: Wed, 3 Jun 2009 21:51:33 +0000 Subject: Support custom URL parameters. Added unit tests for Breakpad. Added a way to specify server parameters in app plist file, as well. R=stuartmorgan, jeremy A=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@346 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/mac/testapp/Controller.m | 7 +++++-- src/client/mac/testapp/Info.plist | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'src/client/mac/testapp') diff --git a/src/client/mac/testapp/Controller.m b/src/client/mac/testapp/Controller.m index e548c917..a324f147 100644 --- a/src/client/mac/testapp/Controller.m +++ b/src/client/mac/testapp/Controller.m @@ -234,6 +234,9 @@ NSLog(@"Shouldn't find BreakpadKeyValue (key2)"); } + BreakpadAddUploadParameter(breakpad_, + @"MeaningOfLife", + @"42"); [NSThread detachNewThreadSelector:@selector(anotherThread) toTarget:self withObject:nil]; @@ -244,8 +247,8 @@ // automated testing. if ([args boolForKey:@"autocrash"]) { BreakpadSetKeyValue(breakpad_, - @BREAKPAD_SKIP_CONFIRM, - @"YES"); + @BREAKPAD_SKIP_CONFIRM, + @"YES"); [self causeCrash]; } diff --git a/src/client/mac/testapp/Info.plist b/src/client/mac/testapp/Info.plist index 2794c44b..6094ec6c 100644 --- a/src/client/mac/testapp/Info.plist +++ b/src/client/mac/testapp/Info.plist @@ -42,6 +42,13 @@ YES BreakpadVendor Foo Bar Corp, Incorporated, LTD, LLC + BreakpadServerParameters + + Param1 + Value1 + Param2 + Value2 + LSUIElement 1 -- cgit v1.2.1