summaryrefslogtreecommitdiff
path: root/platform/ios/uitest/OCMock
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2018-05-24 19:02:38 -0400
committerJason Wray <jason@mapbox.com>2018-05-24 19:11:28 -0400
commit7d050c4cdaf65dedad5ffc740c8819b5aa4e1d47 (patch)
treec2f225e1ebd6b43378300cb44fbaa7a6ef4c50f9 /platform/ios/uitest/OCMock
parent2694c0df037265fd37c6b9dc709efd5fa3472b12 (diff)
downloadqtlocation-mapboxgl-upstream/fb-remove-dead-uitest-infra.tar.gz
[ios, build] Remove obsolete UI tests, KIF and OHHTTPStubs submodulesupstream/fb-remove-dead-uitest-infra
Diffstat (limited to 'platform/ios/uitest/OCMock')
-rw-r--r--platform/ios/uitest/OCMock/OCMock/NSNotificationCenter+OCMAdditions.h26
-rw-r--r--platform/ios/uitest/OCMock/OCMock/OCMArg.h53
-rw-r--r--platform/ios/uitest/OCMock/OCMock/OCMConstraint.h71
-rw-r--r--platform/ios/uitest/OCMock/OCMock/OCMLocation.h36
-rw-r--r--platform/ios/uitest/OCMock/OCMock/OCMMacroState.h45
-rw-r--r--platform/ios/uitest/OCMock/OCMock/OCMRecorder.h39
-rw-r--r--platform/ios/uitest/OCMock/OCMock/OCMStubRecorder.h56
-rw-r--r--platform/ios/uitest/OCMock/OCMock/OCMock.h84
-rw-r--r--platform/ios/uitest/OCMock/OCMock/OCMockObject.h74
-rw-r--r--platform/ios/uitest/OCMock/libOCMock.abin2071640 -> 0 bytes
10 files changed, 0 insertions, 484 deletions
diff --git a/platform/ios/uitest/OCMock/OCMock/NSNotificationCenter+OCMAdditions.h b/platform/ios/uitest/OCMock/OCMock/NSNotificationCenter+OCMAdditions.h
deleted file mode 100644
index c20a9c2b20..0000000000
--- a/platform/ios/uitest/OCMock/OCMock/NSNotificationCenter+OCMAdditions.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (c) 2009-2014 Erik Doernenburg and contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
- * not use these files except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-#import <Foundation/Foundation.h>
-
-@class OCObserverMockObject;
-
-
-@interface NSNotificationCenter(OCMAdditions)
-
-- (void)addMockObserver:(OCObserverMockObject *)notificationObserver name:(NSString *)notificationName object:(id)notificationSender;
-
-@end
diff --git a/platform/ios/uitest/OCMock/OCMock/OCMArg.h b/platform/ios/uitest/OCMock/OCMock/OCMArg.h
deleted file mode 100644
index 2b5f9c7a4e..0000000000
--- a/platform/ios/uitest/OCMock/OCMock/OCMArg.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (c) 2009-2014 Erik Doernenburg and contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
- * not use these files except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-#import <Foundation/Foundation.h>
-
-@interface OCMArg : NSObject
-
-// constraining arguments
-
-+ (id)any;
-+ (SEL)anySelector;
-+ (void *)anyPointer;
-+ (id __autoreleasing *)anyObjectRef;
-+ (id)isNil;
-+ (id)isNotNil;
-+ (id)isEqual:(id)value;
-+ (id)isNotEqual:(id)value;
-+ (id)isKindOfClass:(Class)cls;
-+ (id)checkWithSelector:(SEL)selector onObject:(id)anObject;
-+ (id)checkWithBlock:(BOOL (^)(id obj))block;
-
-// manipulating arguments
-
-+ (id *)setTo:(id)value;
-+ (void *)setToValue:(NSValue *)value;
-
-// internal use only
-
-+ (id)resolveSpecialValues:(NSValue *)value;
-
-@end
-
-#define OCMOCK_ANY [OCMArg any]
-
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
- #define OCMOCK_VALUE(variable) \
- ({ __typeof__(variable) __v = (variable); [NSValue value:&__v withObjCType:@encode(__typeof__(__v))]; })
-#else
- #define OCMOCK_VALUE(variable) [NSValue value:&variable withObjCType:@encode(__typeof__(variable))]
-#endif
diff --git a/platform/ios/uitest/OCMock/OCMock/OCMConstraint.h b/platform/ios/uitest/OCMock/OCMock/OCMConstraint.h
deleted file mode 100644
index 25aa8bf497..0000000000
--- a/platform/ios/uitest/OCMock/OCMock/OCMConstraint.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2007-2014 Erik Doernenburg and contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
- * not use these files except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-#import <Foundation/Foundation.h>
-
-
-@interface OCMConstraint : NSObject
-
-+ (instancetype)constraint;
-- (BOOL)evaluate:(id)value;
-
-// if you are looking for any, isNil, etc, they have moved to OCMArg
-
-// try to use [OCMArg checkWith...] instead of the constraintWith... methods below
-
-+ (instancetype)constraintWithSelector:(SEL)aSelector onObject:(id)anObject;
-+ (instancetype)constraintWithSelector:(SEL)aSelector onObject:(id)anObject withValue:(id)aValue;
-
-
-@end
-
-@interface OCMAnyConstraint : OCMConstraint
-@end
-
-@interface OCMIsNilConstraint : OCMConstraint
-@end
-
-@interface OCMIsNotNilConstraint : OCMConstraint
-@end
-
-@interface OCMIsNotEqualConstraint : OCMConstraint
-{
- @public
- id testValue;
-}
-
-@end
-
-@interface OCMInvocationConstraint : OCMConstraint
-{
- @public
- NSInvocation *invocation;
-}
-
-@end
-
-@interface OCMBlockConstraint : OCMConstraint
-{
- BOOL (^block)(id);
-}
-
-- (instancetype)initWithConstraintBlock:(BOOL (^)(id))block;
-
-@end
-
-
-#define CONSTRAINT(aSelector) [OCMConstraint constraintWithSelector:aSelector onObject:self]
-#define CONSTRAINTV(aSelector, aValue) [OCMConstraint constraintWithSelector:aSelector onObject:self withValue:(aValue)]
diff --git a/platform/ios/uitest/OCMock/OCMock/OCMLocation.h b/platform/ios/uitest/OCMock/OCMock/OCMLocation.h
deleted file mode 100644
index e510db7aaf..0000000000
--- a/platform/ios/uitest/OCMock/OCMock/OCMLocation.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2014 Erik Doernenburg and contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
- * not use these files except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-#import <Foundation/Foundation.h>
-
-@interface OCMLocation : NSObject
-{
- id testCase;
- NSString *file;
- NSUInteger line;
-}
-
-+ (instancetype)locationWithTestCase:(id)aTestCase file:(NSString *)aFile line:(NSUInteger)aLine;
-
-- (instancetype)initWithTestCase:(id)aTestCase file:(NSString *)aFile line:(NSUInteger)aLine;
-
-- (id)testCase;
-- (NSString *)file;
-- (NSUInteger)line;
-
-@end
-
-extern OCMLocation *OCMMakeLocation(id testCase, const char *file, int line);
diff --git a/platform/ios/uitest/OCMock/OCMock/OCMMacroState.h b/platform/ios/uitest/OCMock/OCMock/OCMMacroState.h
deleted file mode 100644
index 4b2d635086..0000000000
--- a/platform/ios/uitest/OCMock/OCMock/OCMMacroState.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2014 Erik Doernenburg and contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
- * not use these files except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-#import <Foundation/Foundation.h>
-
-@class OCMLocation;
-@class OCMRecorder;
-@class OCMStubRecorder;
-@class OCMockObject;
-
-
-@interface OCMMacroState : NSObject
-{
- OCMRecorder *recorder;
-}
-
-+ (void)beginStubMacro;
-+ (OCMStubRecorder *)endStubMacro;
-
-+ (void)beginExpectMacro;
-+ (OCMStubRecorder *)endExpectMacro;
-
-+ (void)beginVerifyMacroAtLocation:(OCMLocation *)aLocation;
-+ (void)endVerifyMacro;
-
-+ (OCMMacroState *)globalState;
-
-- (OCMRecorder *)recorder;
-
-- (void)switchToClassMethod;
-
-@end
diff --git a/platform/ios/uitest/OCMock/OCMock/OCMRecorder.h b/platform/ios/uitest/OCMock/OCMock/OCMRecorder.h
deleted file mode 100644
index f56d2ca4c0..0000000000
--- a/platform/ios/uitest/OCMock/OCMock/OCMRecorder.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) 2014 Erik Doernenburg and contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
- * not use these files except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-#import <Foundation/Foundation.h>
-
-@class OCMockObject;
-@class OCMInvocationMatcher;
-
-
-@interface OCMRecorder : NSProxy
-{
- OCMockObject *mockObject;
- OCMInvocationMatcher *invocationMatcher;
-}
-
-- (instancetype)init;
-- (instancetype)initWithMockObject:(OCMockObject *)aMockObject;
-
-- (void)setMockObject:(OCMockObject *)aMockObject;
-
-- (OCMInvocationMatcher *)invocationMatcher;
-
-- (id)classMethod;
-- (id)ignoringNonObjectArgs;
-
-@end
diff --git a/platform/ios/uitest/OCMock/OCMock/OCMStubRecorder.h b/platform/ios/uitest/OCMock/OCMock/OCMStubRecorder.h
deleted file mode 100644
index 890c9ef3bc..0000000000
--- a/platform/ios/uitest/OCMock/OCMock/OCMStubRecorder.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (c) 2004-2014 Erik Doernenburg and contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
- * not use these files except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-#import "OCMRecorder.h"
-
-
-@interface OCMStubRecorder : OCMRecorder
-
-- (id)andReturn:(id)anObject;
-- (id)andReturnValue:(NSValue *)aValue;
-- (id)andThrow:(NSException *)anException;
-- (id)andPost:(NSNotification *)aNotification;
-- (id)andCall:(SEL)selector onObject:(id)anObject;
-- (id)andDo:(void (^)(NSInvocation *invocation))block;
-- (id)andForwardToRealObject;
-
-@end
-
-
-@interface OCMStubRecorder (Properties)
-
-#define andReturn(aValue) _andReturn(({ __typeof__(aValue) _v = (aValue); [NSValue value:&_v withObjCType:@encode(__typeof__(_v))]; }))
-@property (nonatomic, readonly) OCMStubRecorder *(^ _andReturn)(NSValue *);
-
-#define andThrow(anException) _andThrow(anException)
-@property (nonatomic, readonly) OCMStubRecorder *(^ _andThrow)(NSException *);
-
-#define andPost(aNotification) _andPost(aNotification)
-@property (nonatomic, readonly) OCMStubRecorder *(^ _andPost)(NSNotification *);
-
-#define andCall(anObject, aSelector) _andCall(anObject, aSelector)
-@property (nonatomic, readonly) OCMStubRecorder *(^ _andCall)(id, SEL);
-
-#define andDo(aBlock) _andDo(aBlock)
-@property (nonatomic, readonly) OCMStubRecorder *(^ _andDo)(void (^)(NSInvocation *));
-
-#define andForwardToRealObject() _andForwardToRealObject()
-@property (nonatomic, readonly) OCMStubRecorder *(^ _andForwardToRealObject)(void);
-
-@end
-
-
-
diff --git a/platform/ios/uitest/OCMock/OCMock/OCMock.h b/platform/ios/uitest/OCMock/OCMock/OCMock.h
deleted file mode 100644
index f0083b3507..0000000000
--- a/platform/ios/uitest/OCMock/OCMock/OCMock.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Copyright (c) 2004-2014 Erik Doernenburg and contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
- * not use these files except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-#import <OCMock/OCMockObject.h>
-#import <OCMock/OCMRecorder.h>
-#import <OCMock/OCMStubRecorder.h>
-#import <OCMock/OCMConstraint.h>
-#import <OCMock/OCMArg.h>
-#import <OCMock/OCMLocation.h>
-#import <OCMock/OCMMacroState.h>
-#import <OCMock/NSNotificationCenter+OCMAdditions.h>
-
-
-#define OCMClassMock(cls) [OCMockObject niceMockForClass:cls]
-
-#define OCMStrictClassMock(cls) [OCMockObject mockForClass:cls]
-
-#define OCMProtocolMock(protocol) [OCMockObject niceMockForProtocol:protocol]
-
-#define OCMStrictProtocolMock(protocol) [OCMockObject mockForProtocol:protocol]
-
-#define OCMPartialMock(obj) [OCMockObject partialMockForObject:obj]
-
-#define OCMObserverMock() [OCMockObject observerMock]
-
-
-#define OCMStub(invocation) \
-({ \
- _OCMSilenceWarnings( \
- [OCMMacroState beginStubMacro]; \
- invocation; \
- [OCMMacroState endStubMacro]; \
- ); \
-})
-
-#define OCMExpect(invocation) \
-({ \
- _OCMSilenceWarnings( \
- [OCMMacroState beginExpectMacro]; \
- invocation; \
- [OCMMacroState endExpectMacro]; \
- ); \
-})
-
-#define ClassMethod(invocation) \
- _OCMSilenceWarnings( \
- [[OCMMacroState globalState] switchToClassMethod]; \
- invocation; \
- );
-
-
-#define OCMVerifyAll(mock) [mock verifyAtLocation:OCMMakeLocation(self, __FILE__, __LINE__)]
-
-#define OCMVerifyAllWithDelay(mock, delay) [mock verifyWithDelay:delay atLocation:OCMMakeLocation(self, __FILE__, __LINE__)]
-
-#define OCMVerify(invocation) \
-({ \
- _OCMSilenceWarnings( \
- [OCMMacroState beginVerifyMacroAtLocation:OCMMakeLocation(self, __FILE__, __LINE__)]; \
- invocation; \
- [OCMMacroState endVerifyMacro]; \
- ); \
-})
-
-#define _OCMSilenceWarnings(macro) \
-({ \
- _Pragma("clang diagnostic push") \
- _Pragma("clang diagnostic ignored \"-Wunused-value\"") \
- macro \
- _Pragma("clang diagnostic pop") \
-})
diff --git a/platform/ios/uitest/OCMock/OCMock/OCMockObject.h b/platform/ios/uitest/OCMock/OCMock/OCMockObject.h
deleted file mode 100644
index 63f2bae2be..0000000000
--- a/platform/ios/uitest/OCMock/OCMock/OCMockObject.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright (c) 2004-2014 Erik Doernenburg and contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
- * not use these files except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-#import <Foundation/Foundation.h>
-
-@class OCMLocation;
-@class OCMInvocationStub;
-@class OCMStubRecorder;
-@class OCMInvocationMatcher;
-@class OCMInvocationExpectation;
-
-
-@interface OCMockObject : NSProxy
-{
- BOOL isNice;
- BOOL expectationOrderMatters;
- NSMutableArray *stubs;
- NSMutableArray *expectations;
- NSMutableArray *exceptions;
- NSMutableArray *invocations;
-}
-
-+ (id)mockForClass:(Class)aClass;
-+ (id)mockForProtocol:(Protocol *)aProtocol;
-+ (id)partialMockForObject:(NSObject *)anObject;
-
-+ (id)niceMockForClass:(Class)aClass;
-+ (id)niceMockForProtocol:(Protocol *)aProtocol;
-
-+ (id)observerMock;
-
-- (instancetype)init;
-
-- (void)setExpectationOrderMatters:(BOOL)flag;
-
-- (id)stub;
-- (id)expect;
-- (id)reject;
-
-- (id)verify;
-- (id)verifyAtLocation:(OCMLocation *)location;
-
-- (void)verifyWithDelay:(NSTimeInterval)delay;
-- (void)verifyWithDelay:(NSTimeInterval)delay atLocation:(OCMLocation *)location;
-
-- (void)stopMocking;
-
-// internal use only
-
-- (void)addStub:(OCMInvocationStub *)aStub;
-- (void)addExpectation:(OCMInvocationExpectation *)anExpectation;
-
-- (BOOL)handleInvocation:(NSInvocation *)anInvocation;
-- (void)handleUnRecordedInvocation:(NSInvocation *)anInvocation;
-- (BOOL)handleSelector:(SEL)sel;
-
-- (void)verifyInvocation:(OCMInvocationMatcher *)matcher;
-- (void)verifyInvocation:(OCMInvocationMatcher *)matcher atLocation:(OCMLocation *)location;
-
-@end
-
diff --git a/platform/ios/uitest/OCMock/libOCMock.a b/platform/ios/uitest/OCMock/libOCMock.a
deleted file mode 100644
index 9bb38e21a3..0000000000
--- a/platform/ios/uitest/OCMock/libOCMock.a
+++ /dev/null
Binary files differ