Permalink
Browse files

save the tests, save the world

  • Loading branch information...
1 parent f6d211c commit 3eb111f76ba77a7af9c5c9ee901fd1446e7e34ba @joshaber joshaber committed Sep 12, 2012
Showing with 721 additions and 8,676 deletions.
  1. 0 { → Classes}/ObjectiveGit.m
  2. +0 −1 Frameworks/GHUnit.framework/GHUnit
  3. +0 −1 Frameworks/GHUnit.framework/Headers
  4. +0 −1 Frameworks/GHUnit.framework/Resources
  5. BIN Frameworks/GHUnit.framework/Versions/A/GHUnit
  6. +0 −47 Frameworks/GHUnit.framework/Versions/A/Headers/BWSplitView.h
  7. +0 −155 Frameworks/GHUnit.framework/Versions/A/Headers/GHAsyncTestCase.h
  8. +0 −50 Frameworks/GHUnit.framework/Versions/A/Headers/GHMockNSHTTPURLResponse.h
  9. +0 −173 Frameworks/GHUnit.framework/Versions/A/Headers/GHMockNSURLConnection.h
  10. +0 −132 Frameworks/GHUnit.framework/Versions/A/Headers/GHNSInvocation+Utils.h
  11. +0 −133 Frameworks/GHUnit.framework/Versions/A/Headers/GHNSInvocationProxy.h
  12. +0 −63 Frameworks/GHUnit.framework/Versions/A/Headers/GHNSLocale+Mock.h
  13. +0 −100 Frameworks/GHUnit.framework/Versions/A/Headers/GHNSObject+Invocation.h
  14. +0 −44 Frameworks/GHUnit.framework/Versions/A/Headers/GHTest+JUnitXML.h
  15. +0 −184 Frameworks/GHUnit.framework/Versions/A/Headers/GHTest.h
  16. +0 −23 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestApp.h
  17. +0 −146 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestCase.h
  18. +0 −42 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestGroup+JUnitXML.h
  19. +0 −176 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestGroup.h
  20. +0 −1,012 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestMacros.h
  21. +0 −46 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestOperation.h
  22. +0 −33 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestOutlineViewModel.h
  23. +0 −162 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestRunner.h
  24. +0 −118 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestSuite.h
  25. +0 −103 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestViewController.h
  26. +0 −167 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestViewModel.h
  27. +0 −41 Frameworks/GHUnit.framework/Versions/A/Headers/GHTestWindowController.h
  28. +0 −148 Frameworks/GHUnit.framework/Versions/A/Headers/GHTesting.h
  29. +0 −40 Frameworks/GHUnit.framework/Versions/A/Headers/GHUNSObject+Swizzle.h
  30. +0 −590 Frameworks/GHUnit.framework/Versions/A/Headers/GHUnit.h
  31. +0 −105 Frameworks/GHUnit.framework/Versions/A/Headers/GTMStackTrace.h
  32. +0 −97 Frameworks/GHUnit.framework/Versions/A/Headers/NSException+GHTestFailureExceptions.h
  33. +0 −71 Frameworks/GHUnit.framework/Versions/A/Headers/NSValue+GHValueFormatter.h
  34. BIN Frameworks/GHUnit.framework/Versions/A/Resources/English.lproj/InfoPlist.strings
  35. BIN Frameworks/GHUnit.framework/Versions/A/Resources/GHTestApp.nib
  36. BIN Frameworks/GHUnit.framework/Versions/A/Resources/GHTestView.nib
  37. BIN Frameworks/GHUnit.framework/Versions/A/Resources/GHTestWindow.nib
  38. +0 −4 Frameworks/GHUnit.framework/Versions/A/Resources/GHUnit-Debug.xcconfig
  39. +0 −15 Frameworks/GHUnit.framework/Versions/A/Resources/GHUnit.xcconfig
  40. BIN Frameworks/GHUnit.framework/Versions/A/Resources/GradientSplitViewDimpleBitmap.tif
  41. BIN Frameworks/GHUnit.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf
  42. +0 −22 Frameworks/GHUnit.framework/Versions/A/Resources/Info.plist
  43. +0 −1 Frameworks/GHUnit.framework/Versions/Current
  44. +0 −1 Frameworks/GHUnitIOS.framework/GHUnitIOS
  45. +0 −1 Frameworks/GHUnitIOS.framework/Headers
  46. +0 −1 Frameworks/GHUnitIOS.framework/Resources
  47. BIN Frameworks/GHUnitIOS.framework/Versions/A/GHUnitIOS
  48. +0 −155 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHAsyncTestCase.h
  49. +0 −44 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHTest+JUnitXML.h
  50. +0 −184 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHTest.h
  51. +0 −146 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHTestCase.h
  52. +0 −42 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHTestGroup+JUnitXML.h
  53. +0 −176 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHTestGroup.h
  54. +0 −1,012 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHTestMacros.h
  55. +0 −46 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHTestOperation.h
  56. +0 −162 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHTestRunner.h
  57. +0 −118 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHTestSuite.h
  58. +0 −148 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHTesting.h
  59. +0 −590 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHUnit.h
  60. +0 −39 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHUnitIPhoneAppDelegate.h
  61. +0 −40 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHUnitIPhoneTableViewDataSource.h
  62. +0 −42 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHUnitIPhoneTestViewController.h
  63. +0 −52 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHUnitIPhoneView.h
  64. +0 −71 Frameworks/GHUnitIOS.framework/Versions/A/Headers/GHUnitIPhoneViewController.h
  65. +0 −97 Frameworks/GHUnitIOS.framework/Versions/A/Headers/NSException+GHTestFailureExceptions.h
  66. +0 −71 Frameworks/GHUnitIOS.framework/Versions/A/Headers/NSValue+GHValueFormatter.h
  67. +0 −18 Frameworks/GHUnitIOS.framework/Versions/A/Resources/Info.plist
  68. +0 −1 Frameworks/GHUnitIOS.framework/Versions/Current
  69. +0 −88 GHUnitIOSTestMain.m
  70. +0 −87 GHUnitTestMain.m
  71. +1 −1 LICENSE
  72. +0 −18 Makefile
  73. +189 −405 ObjectiveGitFramework.xcodeproj/project.pbxproj
  74. +27 −3 ObjectiveGitFramework.xcodeproj/xcshareddata/xcschemes/ObjectiveGit.xcscheme
  75. +6 −12 {Tests → ObjectiveGitTests}/Contants.h
  76. +22 −22 {Tests → ObjectiveGitTests}/GTBlobTest.m
  77. +21 −22 {Tests → ObjectiveGitTests}/GTBranchTest.m
  78. +39 −38 {Tests → ObjectiveGitTests}/GTCommitTest.m
  79. +78 −0 ObjectiveGitTests/GTConfigurationTest.m
  80. +57 −57 {Tests → ObjectiveGitTests}/GTIndexTest.m
  81. +6 −6 {Tests → ObjectiveGitTests}/GTLibTest.m
  82. +20 −20 {Tests → ObjectiveGitTests}/GTObjectTest.m
  83. +85 −85 {Tests → ObjectiveGitTests}/GTReferenceTest.m
  84. +17 −17 {Tests → ObjectiveGitTests}/GTRepositoryPackTest.m
  85. +58 −58 {Tests → ObjectiveGitTests}/GTRepositoryTest.m
  86. +27 −27 {Tests → ObjectiveGitTests}/GTTagTest.m
  87. +14 −14 {Tests → ObjectiveGitTests}/GTTreeTest.m
  88. +37 −37 {Tests → ObjectiveGitTests}/GTWalkerTest.m
  89. +6 −6 Tests-iOS-Info.plist → ObjectiveGitTests/ObjectiveGitTests-Info.plist
  90. +9 −0 ObjectiveGitTests/ObjectiveGitTests-Prefix.pch
  91. +2 −0 ObjectiveGitTests/en.lproj/InfoPlist.strings
  92. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/HEAD
  93. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/config
  94. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/description
  95. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/index
  96. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/info/exclude
  97. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/logs/HEAD
  98. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/logs/refs/heads/master
  99. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/04/7142d55581bfb3a703eec247e4fadd5666e789
  100. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/08/ca5b320ed2111f62ec74158b52242757664516
  101. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/0c/37a5391bbff43c37f0d0371823a5509eed5b1d
  102. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/13/85f264afb75a56a5bec74243be9b367ba4ca08
  103. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/18/1037049a54a1eb5fab404658a3a250b44335d7
  104. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/18/10dff58d8a660512d4832e740f692884338ccd
  105. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/23/c5964c265e17b12ce89320ec21b5015f033a66
  106. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/2c/8611f5dacf3c106cd90f4b71e40f87c64cfdab
  107. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/2d/2eff63372b08adf0a9eb84109ccf7d19e2f3a2
  108. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/31/b7680598f36b4e8d0948ddf13ee17d009e9a80
  109. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/32/4d981d11440240df53e825b6eba0afddcb39fa
  110. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/36/060c58702ed4c2a40832c51758d5344201d89a
  111. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/36/a1a2e1ebed3bb4de53d2d0d3982dd724caa7de
  112. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057
  113. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/46/bf0f2b6d602a0d0a8971216dfb81692bde5286
  114. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/49/4a45810d66a43ff2ed747db6f13d7779436de5
  115. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/4a/202b346bb0fb0db7eff3cffeb3c70babbd2045
  116. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/4b/d7c21254336b430f3dcaca0bf27124edbfd979
  117. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/58/2ab21929a82c7c1c10521f371fa011e41a6730
  118. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/58/3cf9deb2f587481b3e88f700066764351c5a98
  119. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/5b/5b025afb0b4c913b4c338a42934a3863bf3644
  120. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/61/9f9935957e010c419cb9d15621916ddfcc0b96
  121. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/63/b661110a0c7e53c5db0389de17f6aee08b21c3
  122. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/6d/e3956f865eb06b3cf5707325df92f3526d9927
  123. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/75/057dd4114e74cca1d750d0aee1647c903cb60a
  124. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/81/4889a078c031f61ed08ab5fa863aea9314344d
  125. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/84/96071c1b46c854b31185ea97743be6a8774479
  126. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/92/867bc5db73e8182a7bf7387dabda57efa9f0c8
  127. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/9f/d738e8f7967c078dceed8190330fc8648ee56a
  128. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/a3/5622ee2ca7c7cf68abdcad335588fbb8bca9ec
  129. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/a4/a7dce85cf63874e984719f4fdd239f5145052f
  130. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/a7/1586c1dfe8a71c6cbf6c129f404c5642ff31bd
  131. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/a8/233120f6ad708f843d861ce2b7228ec4e3dec6
  132. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/b5/fd0db2023fefaad6d654498b19da0452d6ed6f
  133. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/b6/8f98fb09ce029c462ab6cb4b0a6bd388991008
  134. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/b8/f63858750d58a047fb01de56600a848d148c5c
  135. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/be/3563ae3f795b2b4353bcce3a527ad0a4f7f644
  136. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/c4/7800c7266a2be04c571c04d5a6614691ea99bd
  137. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/c4/dc1555e4d4fa0e0c9c3fc46734c7c35b3ce90b
  138. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/d5/8bc7e528c2ed684024ed09c0a866515cbaa93d
  139. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/dc/e40996517d8183ba11d2d0de35c5513db7cd6b
  140. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/e3/02ade1ce3d2729bbe053dd8f923b294336437e
  141. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/e4/065ef1811aa1279362c275aab504b846067a9f
  142. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391
  143. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/e7/d45d5c5b1d3897cba0fb342df207b833b83d7c
  144. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/eb/283b26b265cf3b3c509d32f47adddee83624a4
  145. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/f0/a804583c8dd509d1a0e6fac899a85d31ac121e
  146. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/f3/4546500875044d9a2ae8804171897c81364721
  147. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/f6/0079018b664e4e79329a7ef9559c8d9e0378d1
  148. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/fa/49b077972391ad58037050f2a75f74e3671e92
  149. BIN {Tests → ObjectiveGitTests}/fixtures/testrepo.git/objects/fd/093bff70906175335656e6ce6ae05783708765
  150. BIN ...iveGitTests}/fixtures/testrepo.git/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx
  151. BIN ...veGitTests}/fixtures/testrepo.git/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.pack
  152. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/packed-refs
  153. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/refs/heads/master
  154. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/refs/tags/v0.9
  155. 0 {Tests → ObjectiveGitTests}/fixtures/testrepo.git/refs/tags/v1.0
  156. +0 −44 Scripts/RunTests.sh
  157. +0 −28 Tests-Info.plist
  158. +0 −78 Tests/GTConfigurationTest.m
  159. 0 { → scripts}/update_libgit2.sh
  160. 0 { → scripts}/update_libgit2_ios.sh
File renamed without changes.
Binary file not shown.
@@ -1,47 +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
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 // on lines like this to not confuse IB
- <NSSplitViewDelegate>
-#endif
-{
- 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,155 +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, //!< Unknown wait status
- kGHUnitWaitStatusSuccess, //!< Wait status success
- kGHUnitWaitStatusFailure, //!< Wait status failure
- kGHUnitWaitStatusCancelled //!< Wait status cancelled
-};
-
-/*!
- 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
-
- @interface MyAsyncTest : GHAsyncTestCase { }
- @end
-
- @implementation MyAsyncTest
-
- - (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)];
- }
-
- @end
- @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;
-
-/*!
- Run the run loops for the specified interval.
- @param interval
- @author Adapted from Robert Palmer, pauseForTimeout
- */
-- (void)runForInterval:(NSTimeInterval)interval;
-
-@end
@@ -1,50 +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.
-//
-
-//! @cond DEV
-
-#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
-
-//! @endcond
Oops, something went wrong.

0 comments on commit 3eb111f

Please sign in to comment.