Permalink
Browse files

Upgraded GHUnit framework to latest build from GitHub.

  • Loading branch information...
1 parent 0ee5850 commit c93473d1053cc7584e75f338300641aceaf84b32 @tomaz committed Dec 6, 2010
Showing with 3 additions and 7,156 deletions.
  1. BIN Libraries/GHUnit.framework/GHUnit
  2. BIN Libraries/GHUnit.framework/GHUnit
  3. +1 −0 Libraries/GHUnit.framework/Headers
  4. +1 −0 Libraries/GHUnit.framework/Resources
  5. BIN Libraries/GHUnit.framework/Versions/A/GHUnit
  6. BIN Libraries/GHUnit.framework/Versions/A/Resources/GHTestView.nib
  7. BIN Libraries/GHUnit.framework/Versions/A/Resources/GHTestWindow.nib
  8. +1 −0 Libraries/GHUnit.framework/Versions/Current
  9. BIN Libraries/GHUnit.framework/Versions/Current/GHUnit
  10. +0 −43 Libraries/GHUnit.framework/Versions/Current/Headers/BWSplitView.h
  11. +0 −139 Libraries/GHUnit.framework/Versions/Current/Headers/GHAsyncTestCase.h
  12. +0 −46 Libraries/GHUnit.framework/Versions/Current/Headers/GHMockNSHTTPURLResponse.h
  13. +0 −162 Libraries/GHUnit.framework/Versions/Current/Headers/GHMockNSURLConnection.h
  14. +0 −132 Libraries/GHUnit.framework/Versions/Current/Headers/GHNSInvocation+Utils.h
  15. +0 −133 Libraries/GHUnit.framework/Versions/Current/Headers/GHNSInvocationProxy.h
  16. +0 −59 Libraries/GHUnit.framework/Versions/Current/Headers/GHNSLocale+Mock.h
  17. +0 −100 Libraries/GHUnit.framework/Versions/Current/Headers/GHNSObject+Invocation.h
  18. +0 −40 Libraries/GHUnit.framework/Versions/Current/Headers/GHTest+JUnitXML.h
  19. +0 −181 Libraries/GHUnit.framework/Versions/Current/Headers/GHTest.h
  20. +0 −23 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestApp.h
  21. +0 −141 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestCase.h
  22. +0 −38 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestGroup+JUnitXML.h
  23. +0 −151 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestGroup.h
  24. +0 −1,010 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestMacros.h
  25. +0 −42 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestOperation.h
  26. +0 −26 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestOutlineViewModel.h
  27. +0 −159 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestRunner.h
  28. +0 −114 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestSuite.h
  29. +0 −103 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestViewController.h
  30. +0 −163 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestViewModel.h
  31. +0 −41 Libraries/GHUnit.framework/Versions/Current/Headers/GHTestWindowController.h
  32. +0 −144 Libraries/GHUnit.framework/Versions/Current/Headers/GHTesting.h
  33. +0 −36 Libraries/GHUnit.framework/Versions/Current/Headers/GHUNSObject+Swizzle.h
  34. +0 −51 Libraries/GHUnit.framework/Versions/Current/Headers/GHUnit.h
  35. +0 −105 Libraries/GHUnit.framework/Versions/Current/Headers/GTMStackTrace.h
  36. +0 −88 Libraries/GHUnit.framework/Versions/Current/Headers/NSException+GHTestFailureExceptions.h
  37. +0 −67 Libraries/GHUnit.framework/Versions/Current/Headers/NSValue+GHValueFormatter.h
  38. BIN Libraries/GHUnit.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings
  39. BIN Libraries/GHUnit.framework/Versions/Current/Resources/GHTestApp.nib
  40. BIN Libraries/GHUnit.framework/Versions/Current/Resources/GHTestView.nib
  41. BIN Libraries/GHUnit.framework/Versions/Current/Resources/GHTestWindow.nib
  42. +0 −4 Libraries/GHUnit.framework/Versions/Current/Resources/GHUnit-Debug.xcconfig
  43. +0 −15 Libraries/GHUnit.framework/Versions/Current/Resources/GHUnit.xcconfig
  44. BIN Libraries/GHUnit.framework/Versions/Current/Resources/GradientSplitViewDimpleBitmap.tif
  45. BIN Libraries/GHUnit.framework/Versions/Current/Resources/GradientSplitViewDimpleVector.pdf
  46. +0 −22 Libraries/GHUnit.framework/Versions/Current/Resources/Info.plist
  47. +0 −43 Libraries/GHUnit.framework/headers/BWSplitView.h
  48. +0 −139 Libraries/GHUnit.framework/headers/GHAsyncTestCase.h
  49. +0 −46 Libraries/GHUnit.framework/headers/GHMockNSHTTPURLResponse.h
  50. +0 −162 Libraries/GHUnit.framework/headers/GHMockNSURLConnection.h
  51. +0 −132 Libraries/GHUnit.framework/headers/GHNSInvocation+Utils.h
  52. +0 −133 Libraries/GHUnit.framework/headers/GHNSInvocationProxy.h
  53. +0 −59 Libraries/GHUnit.framework/headers/GHNSLocale+Mock.h
  54. +0 −100 Libraries/GHUnit.framework/headers/GHNSObject+Invocation.h
  55. +0 −40 Libraries/GHUnit.framework/headers/GHTest+JUnitXML.h
  56. +0 −181 Libraries/GHUnit.framework/headers/GHTest.h
  57. +0 −23 Libraries/GHUnit.framework/headers/GHTestApp.h
  58. +0 −141 Libraries/GHUnit.framework/headers/GHTestCase.h
  59. +0 −38 Libraries/GHUnit.framework/headers/GHTestGroup+JUnitXML.h
  60. +0 −151 Libraries/GHUnit.framework/headers/GHTestGroup.h
  61. +0 −1,010 Libraries/GHUnit.framework/headers/GHTestMacros.h
  62. +0 −42 Libraries/GHUnit.framework/headers/GHTestOperation.h
  63. +0 −26 Libraries/GHUnit.framework/headers/GHTestOutlineViewModel.h
  64. +0 −159 Libraries/GHUnit.framework/headers/GHTestRunner.h
  65. +0 −114 Libraries/GHUnit.framework/headers/GHTestSuite.h
  66. +0 −103 Libraries/GHUnit.framework/headers/GHTestViewController.h
  67. +0 −163 Libraries/GHUnit.framework/headers/GHTestViewModel.h
  68. +0 −41 Libraries/GHUnit.framework/headers/GHTestWindowController.h
  69. +0 −144 Libraries/GHUnit.framework/headers/GHTesting.h
  70. +0 −36 Libraries/GHUnit.framework/headers/GHUNSObject+Swizzle.h
  71. +0 −51 Libraries/GHUnit.framework/headers/GHUnit.h
  72. +0 −105 Libraries/GHUnit.framework/headers/GTMStackTrace.h
  73. +0 −88 Libraries/GHUnit.framework/headers/NSException+GHTestFailureExceptions.h
  74. +0 −67 Libraries/GHUnit.framework/headers/NSValue+GHValueFormatter.h
  75. BIN Libraries/GHUnit.framework/resources/English.lproj/InfoPlist.strings
  76. BIN Libraries/GHUnit.framework/resources/GHTestApp.nib
  77. BIN Libraries/GHUnit.framework/resources/GHTestView.nib
  78. BIN Libraries/GHUnit.framework/resources/GHTestWindow.nib
  79. +0 −4 Libraries/GHUnit.framework/resources/GHUnit-Debug.xcconfig
  80. +0 −15 Libraries/GHUnit.framework/resources/GHUnit.xcconfig
  81. BIN Libraries/GHUnit.framework/resources/GradientSplitViewDimpleBitmap.tif
  82. BIN Libraries/GHUnit.framework/resources/GradientSplitViewDimpleVector.pdf
  83. +0 −22 Libraries/GHUnit.framework/resources/Info.plist
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
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,139 +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.
-
- If notify occurs before wait has started (if it was a synchronous call), this test
- case will still work.
-
- 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.
- // To ignore the check, forSelector can be NULL.
- [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 c93473d

Please sign in to comment.