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

Unified Diff: ios/chrome/test/ocmock/OCMockObject+BreakpadControllerTesting.mm

Issue 2891143002: [ObjC ARC] Converts ios/chrome/test/ocmock:ocmock to ARC. (Closed)
Patch Set: Rebase Created 3 years, 6 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 | « ios/chrome/test/ocmock/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/test/ocmock/OCMockObject+BreakpadControllerTesting.mm
diff --git a/ios/chrome/test/ocmock/OCMockObject+BreakpadControllerTesting.mm b/ios/chrome/test/ocmock/OCMockObject+BreakpadControllerTesting.mm
index df3cc83da374062d680eec1aa6f1088a22f5995f..ba86516207823738a3d5b24d107496547c162ca4 100644
--- a/ios/chrome/test/ocmock/OCMockObject+BreakpadControllerTesting.mm
+++ b/ios/chrome/test/ocmock/OCMockObject+BreakpadControllerTesting.mm
@@ -8,11 +8,15 @@
#include "testing/gtest/include/gtest/gtest.h"
#import "third_party/ocmock/OCMock/OCMock.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@implementation OCMockObject (BreakpadControllerTesting)
- (void)cr_expectGetCrashReportCount:(int)crashReportCount {
id invocationBlock = ^(NSInvocation* invocation) {
- void (^block)(int);
+ __unsafe_unretained void (^block)(int);
[invocation getArgument:&block atIndex:2];
if (!block) {
ADD_FAILURE();
« no previous file with comments | « ios/chrome/test/ocmock/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698