Skip to content

Commit

Permalink
Tidied up imports in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdoe committed Aug 21, 2020
1 parent b3d7f80 commit 401afb4
Show file tree
Hide file tree
Showing 23 changed files with 35 additions and 30 deletions.
1 change: 1 addition & 0 deletions Source/OCMockTests/NSInvocationOCMAdditionsTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#import "NSInvocation+OCMAdditions.h"
#import "OCMArg.h"


@implementation NSValue(OCMTestAdditions)

- (id)initialValue
Expand Down
1 change: 1 addition & 0 deletions Source/OCMockTests/NSMethodSignatureOCMAdditionsTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import <XCTest/XCTest.h>
#import "NSMethodSignature+OCMAdditions.h"


#if TARGET_OS_IPHONE
#define NSPoint CGPoint
#define NSSize CGSize
Expand Down
1 change: 1 addition & 0 deletions Source/OCMockTests/OCMBoxedReturnValueProviderTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import <XCTest/XCTest.h>
#import "OCMBoxedReturnValueProvider.h"


@interface OCMBoxedReturnValueProvider(Private)
- (BOOL)isMethodReturnType:(const char *)returnType compatibleWithValueType:(const char *)valueType value:(const char*)value valueSize:(size_t)valueSize;
@end
Expand Down
2 changes: 1 addition & 1 deletion Source/OCMockTests/OCMCPlusPlus11Tests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"

#if !defined(__cplusplus)
#error This file must be compiled with C++
Expand Down
2 changes: 1 addition & 1 deletion Source/OCMockTests/OCMCPlusPlus98Tests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"

#if !defined(__cplusplus)
#error This file must be compiled with C++
Expand Down
2 changes: 1 addition & 1 deletion Source/OCMockTests/OCMConstraintTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMConstraint.h>
#import "OCMConstraint.h"


@interface OCMConstraintTests : XCTestCase
Expand Down
3 changes: 1 addition & 2 deletions Source/OCMockTests/OCMInvocationMatcherTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMArg.h>
#import "OCMock.h"
#import "OCMInvocationMatcher.h"
#import "OCClassMockObject.h"
#import "OCMFunctionsPrivate.h"


Expand Down
3 changes: 2 additions & 1 deletion Source/OCMockTests/OCMNoEscapeBlockTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"
#import "OCMFunctionsPrivate.h"


@interface NSString(NoEscapeBlock)
@end

Expand Down
3 changes: 1 addition & 2 deletions Source/OCMockTests/OCMQuantifierTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMQuantifier.h"
#import "OCMock.h"


@interface TestClassForQuantifiers : NSObject
Expand Down
5 changes: 2 additions & 3 deletions Source/OCMockTests/OCMStubRecorderTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
*/

#import <XCTest/XCTest.h>
#import "OCMStubRecorder.h"
#import <OCMock/OCMockObject.h>
#import "OCMock.h"
#import "OCMObjectReturnValueProvider.h"
#import "OCMExceptionReturnValueProvider.h"
#import "OCMInvocationMatcher.h"
#import "OCMInvocationStub.h"


@interface OCMStubRecorderTests : XCTestCase

@end
Expand Down
2 changes: 1 addition & 1 deletion Source/OCMockTests/OCMockObjectClassMethodMockingTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"
#import "OCClassMockObject.h"
#import "OCPartialMockObject.h"

Expand Down
3 changes: 2 additions & 1 deletion Source/OCMockTests/OCMockObjectDynamicPropertyMockingTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"


#pragma mark Helper classes

Expand Down
3 changes: 2 additions & 1 deletion Source/OCMockTests/OCMockObjectForwardingTargetTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import <objc/runtime.h>
#import "OCMock.h"


#pragma mark Helper classes

Expand Down
2 changes: 1 addition & 1 deletion Source/OCMockTests/OCMockObjectHamcrestTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import <XCTest/XCTest.h>
#import <OCHamcrest/OCHamcrest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"


@interface OCMockObjectHamcrestTests : XCTestCase
Expand Down
2 changes: 1 addition & 1 deletion Source/OCMockTests/OCMockObjectInternalTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"


#pragma mark Helper classes
Expand Down
2 changes: 1 addition & 1 deletion Source/OCMockTests/OCMockObjectMacroTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"


@protocol TestProtocolForMacroTesting
Expand Down
3 changes: 2 additions & 1 deletion Source/OCMockTests/OCMockObjectPartialMocksTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import <CoreData/CoreData.h>
#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"
#import "OCPartialMockObject.h"
#import "TestClassWithCustomReferenceCounting.h"

Expand All @@ -27,6 +27,7 @@
#define valueWithRect valueWithCGRect
#endif


#pragma mark Helper classes

@interface TestClassWithSimpleMethod : NSObject
Expand Down
2 changes: 1 addition & 1 deletion Source/OCMockTests/OCMockObjectProtocolMocksTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"


// --------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion Source/OCMockTests/OCMockObjectRuntimeTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"


#pragma mark Helper classes
Expand Down
13 changes: 6 additions & 7 deletions Source/OCMockTests/OCMockObjectTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMBoxedReturnValueProvider.h"
#import "OCMock/OCMock.h"


#pragma mark Helper classes and protocols for testing
Expand Down Expand Up @@ -91,13 +90,13 @@ @implementation TestClassWithProperty

@interface TestClassWithBlockArgMethod : NSObject

- (void)doStuffWithBlock:(void (^)(void))block andString:(id)aString;
- (void)doStuffWithBlock:(__unused void (^)(void))block andString:(id)aString;

@end

@implementation TestClassWithBlockArgMethod

- (void)doStuffWithBlock:(void (^)(void))block andString:(id)aString;
- (void)doStuffWithBlock:(__unused void (^)(void))block andString:(id)aString;
{
// stubbed out anyway
}
Expand Down Expand Up @@ -157,13 +156,13 @@ - (id)objectValue;

@interface TestClassWithProtocolBlockArgMethod : NSObject

- (void)doStuffWithBlock:(void (^)(id<TestProtocol> arg))block;
- (void)doStuffWithBlock:(__unused void (^)(id<TestProtocol> arg))block;

@end

@implementation TestClassWithProtocolBlockArgMethod

- (void)doStuffWithBlock:(void (^)(id<TestProtocol> arg))block;
- (void)doStuffWithBlock:(__unused void (^)(id<TestProtocol> arg))block;
{
// stubbed out anyway
}
Expand Down Expand Up @@ -868,7 +867,7 @@ - (void)testInvokesBlockWithProtocolMockArgs

__block BOOL wasCalled = NO;
__block id<TestProtocol> firstParam;
void (^block)(id<TestProtocol> arg) = ^(id<TestProtocol> arg) {
void (^block)(id<TestProtocol>) = ^(id<TestProtocol> arg) {
wasCalled = YES;
firstParam = arg;
};
Expand Down
4 changes: 2 additions & 2 deletions Source/OCMockTests/OCMockObjectVerifyAfterRunTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*/

#import <XCTest/XCTest.h>
#import "OCMockObject.h"
#import "OCMStubRecorder.h"
#import "OCMock.h"


@interface TestBaseClassForVerifyAfterRun : NSObject

Expand Down
3 changes: 2 additions & 1 deletion Source/OCMockTests/OCObserverMockObjectTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/

#import <XCTest/XCTest.h>
#import <OCMock/OCMock.h>
#import "OCMock.h"


static NSString *TestNotificationOne = @"TestNotificationOne";

Expand Down
1 change: 1 addition & 0 deletions Source/OCMockTests/TestClassWithCustomReferenceCounting.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import <libkern/OSAtomic.h>
#import "TestClassWithCustomReferenceCounting.h"


@implementation TestClassWithCustomReferenceCounting
{
#if __LP64__
Expand Down

0 comments on commit 401afb4

Please sign in to comment.