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

Unified Diff: ios/chrome/browser/ui/infobars/infobar_view_unittest.mm

Issue 2826083003: [ObjC ARC] Converts ios/chrome/browser/ui/infobars:unit_tests to ARC. (Closed)
Patch Set: Created 3 years, 8 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/browser/ui/infobars/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/browser/ui/infobars/infobar_view_unittest.mm
diff --git a/ios/chrome/browser/ui/infobars/infobar_view_unittest.mm b/ios/chrome/browser/ui/infobars/infobar_view_unittest.mm
index 791677714d0599e07189798f4b935d5c4af112a3..2e29452f4e8f30a25507d626549270ff072851f2 100644
--- a/ios/chrome/browser/ui/infobars/infobar_view_unittest.mm
+++ b/ios/chrome/browser/ui/infobars/infobar_view_unittest.mm
@@ -8,6 +8,10 @@
#include "testing/gtest_mac.h"
#include "testing/platform_test.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@interface InfoBarView (Testing)
- (CGFloat)buttonsHeight;
- (CGFloat)buttonMargin;
@@ -29,9 +33,9 @@ class InfoBarViewTest : public PlatformTest {
void SetUp() override {
PlatformTest::SetUp();
CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
- infobarView_.reset([[InfoBarView alloc]
- initWithFrame:CGRectMake(0, 0, screenWidth, 0)
- delegate:NULL]);
+ infobarView_ =
+ [[InfoBarView alloc] initWithFrame:CGRectMake(0, 0, screenWidth, 0)
+ delegate:NULL];
[infobarView_ addCloseButtonWithTag:0 target:nil action:nil];
}
@@ -75,7 +79,7 @@ class InfoBarViewTest : public PlatformTest {
}
}
- base::scoped_nsobject<InfoBarView> infobarView_;
+ InfoBarView* infobarView_;
};
TEST_F(InfoBarViewTest, TestLayoutWithNoLabel) {
« no previous file with comments | « ios/chrome/browser/ui/infobars/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698