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

Unified Diff: third_party/ocmock/OCMock/OCMockObjectHamcrestTests.mm

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
Index: third_party/ocmock/OCMock/OCMockObjectHamcrestTests.mm
diff --git a/third_party/ocmock/OCMock/OCMockObjectHamcrestTests.mm b/third_party/ocmock/OCMock/OCMockObjectHamcrestTests.mm
deleted file mode 100644
index 4f0f5dd16a9b9ab3deaa265b0b6139945d7b102e..0000000000000000000000000000000000000000
--- a/third_party/ocmock/OCMock/OCMockObjectHamcrestTests.mm
+++ /dev/null
@@ -1,31 +0,0 @@
-//---------------------------------------------------------------------------------------
-// $Id: OCMockObjectTests.m 21 2008-01-24 18:59:39Z erik $
-// Copyright (c) 2004-2008 by Mulle Kybernetik. See License file for details.
-//---------------------------------------------------------------------------------------
-
-#import <OCMock/OCMock.h>
-#import "OCMockObjectHamcrestTests.h"
-
-#define HC_SHORTHAND
-#import <OCHamcrest/OCHamcrest.h>
-
-
-@implementation OCMockObjectHamcrestTests
-
-- (void)testAcceptsStubbedMethodWithHamcrestConstraint
-{
- id mock = [OCMockObject mockForClass:[NSString class]];
- [[mock stub] hasSuffix:(id)startsWith(@"foo")];
- [mock hasSuffix:@"foobar"];
-}
-
-
-- (void)testRejectsUnstubbedMethodWithHamcrestConstraint
-{
- id mock = [OCMockObject mockForClass:[NSString class]];
- [[mock stub] hasSuffix:(id)anyOf(equalTo(@"foo"), equalTo(@"bar"), NULL)];
- STAssertThrows([mock hasSuffix:@"foobar"], @"Should have raised an exception.");
-}
-
-
-@end
« no previous file with comments | « third_party/ocmock/OCMock/OCMockObjectHamcrestTests.h ('k') | third_party/ocmock/OCMock/OCMockObjectTests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698