Permalink
Browse files

Move GHUnit to submodule, hope this works!

  • Loading branch information...
1 parent fa1a9a0 commit e89bee176a7869cd098ec0c90beeb1965a18e252 @pokeb committed Mar 17, 2010
Showing with 55 additions and 5,719 deletions.
  1. +3 −0 .gitmodules
  2. +1 −1 Classes/ASIHTTPRequest.m
  3. +0 −1 Classes/S3/ASIS3Request.m
  4. +2 −2 Classes/Tests/GHUnitTestMain.m
  5. +1 −0 External/GHUnit
  6. +0 −1 Frameworks/GHUnit.framework/GHUnit
  7. +0 −1 Frameworks/GHUnit.framework/Headers
  8. +0 −1 Frameworks/GHUnit.framework/Resources
  9. BIN Frameworks/GHUnit.framework/Versions/A/GHUnit
  10. +0 −43 Frameworks/GHUnit.framework/Versions/A/Headers/BWSplitView.h
  11. +0 −132 Frameworks/GHUnit.framework/Versions/A/Headers/GHAsyncTestCase.h
  12. +0 −46 Frameworks/GHUnit.framework/Versions/A/Headers/GHMockNSHTTPURLResponse.h
  13. +0 −150 Frameworks/GHUnit.framework/Versions/A/Headers/GHMockNSURLConnection.h
  14. +0 −132 Frameworks/GHUnit.framework/Versions/A/Headers/GHNSInvocation+Utils.h
  15. +0 −133 Frameworks/GHUnit.framework/Versions/A/Headers/GHNSInvocationProxy.h
  16. +0 −59 Frameworks/GHUnit.framework/Versions/A/Headers/GHNSLocale+Mock.h
  17. +0 −100 Frameworks/GHUnit.framework/Versions/A/Headers/GHNSObject+Invocation.h
  18. +0 −175 Frameworks/GHUnit.framework/Versions/A/Headers/GHTest.h
  19. +0 −25 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestApp.h
  20. +0 −141 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestCase.h
  21. +0 −167 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestGroup.h
  22. +0 −1,007 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestMacros.h
  23. +0 −26 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestOutlineViewModel.h
  24. +0 −153 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestRunner.h
  25. +0 −108 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestSuite.h
  26. +0 −85 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestViewController.h
  27. +0 −145 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestViewModel.h
  28. +0 −40 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestWindowController.h
  29. +0 −109 Frameworks/GHUnit.framework/Versions/A/Headers/GHTesting.h
  30. +0 −36 Frameworks/GHUnit.framework/Versions/A/Headers/GHUNSObject+Swizzle.h
  31. +0 −42 Frameworks/GHUnit.framework/Versions/A/Headers/GHUnit.h
  32. +0 −105 Frameworks/GHUnit.framework/Versions/A/Headers/GTMStackTrace.h
  33. +0 −83 Frameworks/GHUnit.framework/Versions/A/Headers/NSException+GHTestFailureExceptions.h
  34. +0 −67 Frameworks/GHUnit.framework/Versions/A/Headers/NSValue+GHValueFormatter.h
  35. BIN Frameworks/GHUnit.framework/Versions/A/Resources/English.lproj/InfoPlist.strings
  36. BIN Frameworks/GHUnit.framework/Versions/A/Resources/GHTestApp.nib
  37. BIN Frameworks/GHUnit.framework/Versions/A/Resources/GHTestView.nib
  38. BIN Frameworks/GHUnit.framework/Versions/A/Resources/GHTestWindow.nib
  39. BIN Frameworks/GHUnit.framework/Versions/A/Resources/GradientSplitViewDimpleBitmap.tif
  40. BIN Frameworks/GHUnit.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf
  41. +0 −22 Frameworks/GHUnit.framework/Versions/A/Resources/Info.plist
  42. +0 −1 Frameworks/GHUnit.framework/Versions/Current
  43. +0 −132 Frameworks/libGHUnitIPhone3_0-0/GHAsyncTestCase.h
  44. +0 −175 Frameworks/libGHUnitIPhone3_0-0/GHTest.h
  45. +0 −141 Frameworks/libGHUnitIPhone3_0-0/GHTestCase.h
  46. +0 −167 Frameworks/libGHUnitIPhone3_0-0/GHTestGroup.h
  47. +0 −1,007 Frameworks/libGHUnitIPhone3_0-0/GHTestMacros.h
  48. +0 −153 Frameworks/libGHUnitIPhone3_0-0/GHTestRunner.h
  49. +0 −108 Frameworks/libGHUnitIPhone3_0-0/GHTestSuite.h
  50. +0 −109 Frameworks/libGHUnitIPhone3_0-0/GHTesting.h
  51. +0 −36 Frameworks/libGHUnitIPhone3_0-0/GHUNSObject+Swizzle.h
  52. +0 −42 Frameworks/libGHUnitIPhone3_0-0/GHUnit.h
  53. +0 −18 Frameworks/libGHUnitIPhone3_0-0/GHUnitIPhoneAppDelegate.h
  54. +0 −59 Frameworks/libGHUnitIPhone3_0-0/GHUnitIPhoneTestMain.m
  55. +0 −15 Frameworks/libGHUnitIPhone3_0-0/Makefile
  56. +0 −83 Frameworks/libGHUnitIPhone3_0-0/NSException+GHTestFailureExceptions.h
  57. +0 −67 Frameworks/libGHUnitIPhone3_0-0/NSValue+GHValueFormatter.h
  58. +0 −28 Frameworks/libGHUnitIPhone3_0-0/RunTests.sh
  59. BIN Frameworks/libGHUnitIPhone3_0-0/libGHUnitIPhone3_0.a
  60. +6 −6 Mac.xcodeproj/project.pbxproj
  61. +42 −34 iPhone.xcodeproj/project.pbxproj
View
@@ -0,0 +1,3 @@
+[submodule "External/GHUnit"]
+ path = External/GHUnit
+ url = git://github.com/gabriel/gh-unit.git
View
@@ -21,7 +21,7 @@
#import "ASIInputStream.h"
// Automatically set on build
-NSString *ASIHTTPRequestVersion = @"v1.6-11 2010-03-17";
+NSString *ASIHTTPRequestVersion = @"v1.6-12 2010-03-17";
NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
@@ -32,7 +32,6 @@ @implementation ASIS3Request
- (id)initWithURL:(NSURL *)newURL
{
self = [super initWithURL:newURL];
-
// After a bit of experimentation/guesswork, this number seems to reduce the chance of a 'RequestTimeout' error
[self setPersistentConnectionTimeoutSeconds:20];
return self;
@@ -39,7 +39,7 @@ void exceptionHandler(NSException *exception) {
}
int main(int argc, char *argv[]) {
-
+
/*!
For debugging:
Go into the "Get Info" contextual menu of your (test) executable (inside the "Executables" group in the left panel of XCode).
@@ -86,4 +86,4 @@ int main(int argc, char *argv[]) {
}
[pool release];
return retVal;
-}
+}
Submodule GHUnit added at b3fb76
Binary file not shown.
@@ -1,43 +0,0 @@
-//
-// BWSplitView.h
-// BWToolkit
-//
-// Created by Brandon Walkin (www.brandonwalkin.com) and Fraser Kuyvenhoven.
-// All code is provided under the New BSD license.
-//
-
-#import <Cocoa/Cocoa.h>
-
-@interface BWSplitView : NSSplitView {
- NSColor *color;
- BOOL colorIsEnabled, checkboxIsEnabled, dividerCanCollapse, collapsibleSubviewCollapsed;
- id secondaryDelegate;
- NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits;
- NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize;
- NSArray *stateForLastPreferredCalculations;
- int collapsiblePopupSelection;
- float uncollapsedSize;
-
- // Collapse button
- NSButton *toggleCollapseButton;
- BOOL isAnimating;
-}
-
-@property (retain) NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits;
-@property (retain) NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize;
-@property (retain) NSArray *stateForLastPreferredCalculations;
-@property (retain) NSButton *toggleCollapseButton;
-@property BOOL collapsibleSubviewCollapsed;
-@property int collapsiblePopupSelection;
-@property BOOL dividerCanCollapse;
-
-// The split view divider color
-@property (copy) NSColor *color;
-
-// Flag for whether a custom divider color is enabled. If not, the standard divider color is used.
-@property BOOL colorIsEnabled;
-
-// Call this method to collapse or expand a subview configured as collapsible in the IB inspector.
-- (IBAction)toggleCollapse:(id)sender;
-
-@end
@@ -1,132 +0,0 @@
-//
-// GHAsyncTestCase.h
-// GHUnit
-//
-// Created by Gabriel Handford on 4/8/09.
-// Copyright 2009. All rights reserved.
-//
-// Permission is hereby granted, free of charge, to any person
-// obtaining a copy of this software and associated documentation
-// files (the "Software"), to deal in the Software without
-// restriction, including without limitation the rights to use,
-// copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the
-// Software is furnished to do so, subject to the following
-// conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-// OTHER DEALINGS IN THE SOFTWARE.
-//
-
-#import "GHTestCase.h"
-
-// Some default statuses to use; Or define and use your own
-enum {
- kGHUnitWaitStatusUnknown = 0,
- kGHUnitWaitStatusSuccess,
- kGHUnitWaitStatusFailure,
- kGHUnitWaitStatusCancelled
-};
-
-/*!
- Asynchronous test case with wait and notify.
-
- Handles the case of notify occuring before wait has started (if it was a synchronous call).
- Be sure to call prepare before the asynchronous method (otherwise an exception will raise).
-
- @code
- - (void)testSuccess {
- [self prepare];
-
- // Do asynchronous task here
- [self performSelector:@selector(_succeed) withObject:nil afterDelay:0.1];
-
- [self waitForStatus:kGHUnitWaitStatusSuccess timeout:1.0];
- }
-
- - (void)_succeed {
- // Notice the forSelector points to the test above. This is so that
- // stray notifies don't error or falsely succeed other tests.
- [self notify:kGHUnitWaitStatusSuccess forSelector:@selector(testSuccess)];
- }
- @endcode
- */
-@interface GHAsyncTestCase : GHTestCase {
-
- NSInteger waitForStatus_;
- NSInteger notifiedStatus_;
-
- BOOL prepared_; // Whether prepared was called before waitForStatus:timeout:
- NSRecursiveLock *lock_; // Lock to synchronize on
- SEL waitSelector_; // The selector we are waiting on
-
- NSArray *_runLoopModes; // Run loop modes to run while waiting; Defaults to NSDefaultRunLoopMode, NSRunLoopCommonModes, NSConnectionReplyMode
-}
-
-@property (retain, nonatomic) NSArray *runLoopModes;
-
-/*!
- Prepare before calling the asynchronous method.
- */
-- (void)prepare;
-
-/*!
- Prepare and specify the selector we will use in notify.
-
- @param selector
- */
-- (void)prepare:(SEL)selector;
-
-/*!
- Wait for notification of status or timeout.
-
- Be sure to prepare before calling your asynchronous method.
- For example,
-
- @code
- - (void)testFoo {
- [self prepare];
- // Do asynchronous task here
- [self waitForStatus:kGHUnitWaitStatusSuccess timeout:1.0];
- }
- @endcode
-
- @param status kGHUnitWaitStatusSuccess, kGHUnitWaitStatusFailure or custom status
- @param timeout Timeout in seconds
- */
-- (void)waitForStatus:(NSInteger)status timeout:(NSTimeInterval)timeout;
-
-// Deprecated
-- (void)waitFor:(NSInteger)status timeout:(NSTimeInterval)timeout;
-
-/*!
- Wait for timeout to occur.
- Fails if we did _NOT_ timeout.
- @param timeout
- */
-- (void)waitForTimeout:(NSTimeInterval)timeout;
-
-/*!
- Notify waiting of status for test selector.
- @param status Status, for example, kGHUnitWaitStatusSuccess
- @param selector If not NULL, then will verify this selector is where we are waiting.
- This prevents stray asynchronous callbacks to fail a later test
- */
-- (void)notify:(NSInteger)status forSelector:(SEL)selector;
-
-/*!
- Notify waiting of status for any selector.
- @param status Status, for example, kGHUnitWaitStatusSuccess
- */
-- (void)notify:(NSInteger)status;
-
-@end
@@ -1,46 +0,0 @@
-//
-// GHMockNSHTTPURLResponse.h
-// GHUnit
-//
-// Created by Gabriel Handford on 4/9/09.
-// Copyright 2009. All rights reserved.
-//
-// Permission is hereby granted, free of charge, to any person
-// obtaining a copy of this software and associated documentation
-// files (the "Software"), to deal in the Software without
-// restriction, including without limitation the rights to use,
-// copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the
-// Software is furnished to do so, subject to the following
-// conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-// OTHER DEALINGS IN THE SOFTWARE.
-//
-
-#import <Foundation/Foundation.h>
-
-/*!
- NSHTTPURLResponse for use with mocking.
- Allows us to manually set the status code and headers in the response.
- */
-@interface GHMockNSHTTPURLResponse : NSHTTPURLResponse {
- NSInteger statusCode_;
- NSDictionary *headers_;
-}
-
-- (id)initWithStatusCode:(NSInteger)statusCode headers:(NSDictionary *)headers;
-
-- (void)setStatusCode:(NSInteger)code;
-- (void)setHeaders:(NSDictionary *)headers;
-
-@end
Oops, something went wrong.

0 comments on commit e89bee1

Please sign in to comment.