Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Unified Diff: third_party/ocmock/OCMock/OCMockRecorderTests.m

Issue 9240023: Roll OCMock r77:7f521db0628086185123666b0979e48d6ecaeac1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/ocmock/OCMock/OCMockRecorderTests.h ('k') | third_party/ocmock/OCMock/OCMock_Prefix.pch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ocmock/OCMock/OCMockRecorderTests.m
diff --git a/third_party/ocmock/OCMock/OCMockRecorderTests.m b/third_party/ocmock/OCMock/OCMockRecorderTests.m
deleted file mode 100644
index a20fa547d25b640cafa20fa61ca394d877947c60..0000000000000000000000000000000000000000
--- a/third_party/ocmock/OCMock/OCMockRecorderTests.m
+++ /dev/null
@@ -1,81 +0,0 @@
-//---------------------------------------------------------------------------------------
-// $Id: OCMockRecorderTests.m 61 2010-07-21 02:38:57Z erik $
-// Copyright (c) 2004-2009 by Mulle Kybernetik. See License file for details.
-//---------------------------------------------------------------------------------------
-
-#import "OCMockRecorderTests.h"
-#import <OCMock/OCMockRecorder.h>
-#import "OCMReturnValueProvider.h"
-#import "OCMExceptionReturnValueProvider.h"
-
-
-@implementation OCMockRecorderTests
-
-- (void)setUp
-{
- NSMethodSignature *signature;
-
- signature = [NSString instanceMethodSignatureForSelector:@selector(initWithString:)];
- testInvocation = [NSInvocation invocationWithMethodSignature:signature];
- [testInvocation setSelector:@selector(initWithString:)];
-}
-
-
-- (void)testStoresAndMatchesInvocation
-{
- OCMockRecorder *recorder;
- NSString *arg;
-
- arg = @"I love mocks.";
- [testInvocation setArgument:&arg atIndex:2];
-
- recorder = [[[OCMockRecorder alloc] initWithSignatureResolver:[NSString string]] autorelease];
- [(id)recorder initWithString:arg];
-
- STAssertTrue([recorder matchesInvocation:testInvocation], @"Should match.");
-}
-
-
-- (void)testOnlyMatchesInvocationWithRightArguments
-{
- OCMockRecorder *recorder;
- NSString *arg;
-
- arg = @"I love mocks.";
- [testInvocation setArgument:&arg atIndex:2];
-
- recorder = [[[OCMockRecorder alloc] initWithSignatureResolver:[NSString string]] autorelease];
- [(id)recorder initWithString:@"whatever"];
-
- STAssertFalse([recorder matchesInvocation:testInvocation], @"Should not match.");
-}
-
-
-- (void)testAddsReturnValueProvider
-{
- OCMockRecorder *recorder;
- NSArray *handlerList;
-
- recorder = [[[OCMockRecorder alloc] initWithSignatureResolver:[NSString string]] autorelease];
- [recorder andReturn:@"foo"];
- handlerList = [recorder invocationHandlers];
-
- STAssertEquals((NSUInteger)1, [handlerList count], @"Should have added one handler.");
- STAssertEqualObjects([OCMReturnValueProvider class], [[handlerList objectAtIndex:0] class], @"Should have added correct handler.");
-}
-
-- (void)testAddsExceptionReturnValueProvider
-{
- OCMockRecorder *recorder;
- NSArray *handlerList;
-
- recorder = [[[OCMockRecorder alloc] initWithSignatureResolver:[NSString string]] autorelease];
- [recorder andThrow:[NSException exceptionWithName:@"TestException" reason:@"A reason" userInfo:nil]];
- handlerList = [recorder invocationHandlers];
-
- STAssertEquals((NSUInteger)1, [handlerList count], @"Should have added one handler.");
- STAssertEqualObjects([OCMExceptionReturnValueProvider class], [[handlerList objectAtIndex:0] class], @"Should have added correct handler.");
-
-}
-
-@end
« no previous file with comments | « third_party/ocmock/OCMock/OCMockRecorderTests.h ('k') | third_party/ocmock/OCMock/OCMock_Prefix.pch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698