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

Unified Diff: third_party/ocmock/OCMock/OCMReturnValueProvider.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/OCMReturnValueProvider.h ('k') | third_party/ocmock/OCMock/OCMock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ocmock/OCMock/OCMReturnValueProvider.m
diff --git a/third_party/ocmock/OCMock/OCMReturnValueProvider.m b/third_party/ocmock/OCMock/OCMReturnValueProvider.m
index 601b773d84f77d166f9b39b8abed9dbe4486e1b2..d98b59c9956b19d5aa1bfc279e0d7ae30ded125d 100644
--- a/third_party/ocmock/OCMock/OCMReturnValueProvider.m
+++ b/third_party/ocmock/OCMock/OCMReturnValueProvider.m
@@ -1,5 +1,5 @@
//---------------------------------------------------------------------------------------
-// $Id: OCMReturnValueProvider.m 52 2009-08-14 07:21:10Z erik $
+// $Id$
// Copyright (c) 2009 by Mulle Kybernetik. See License file for details.
//---------------------------------------------------------------------------------------
@@ -11,7 +11,7 @@
- (id)initWithValue:(id)aValue
{
- [super init];
+ self = [super init];
returnValue = [aValue retain];
return self;
}
@@ -26,7 +26,7 @@
{
const char *returnType = [[anInvocation methodSignature] methodReturnTypeWithoutQualifiers];
if(strcmp(returnType, @encode(id)) != 0)
- @throw [NSException exceptionWithName:NSInvalidArgumentException reason:@"Expected invocation with object return type." userInfo:nil];
+ @throw [NSException exceptionWithName:NSInvalidArgumentException reason:@"Expected invocation with object return type. Did you mean to use andReturnValue: instead?" userInfo:nil];
[anInvocation setReturnValue:&returnValue];
}
« no previous file with comments | « third_party/ocmock/OCMock/OCMReturnValueProvider.h ('k') | third_party/ocmock/OCMock/OCMock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698