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

Unified Diff: ios/chrome/browser/ui/page_not_available_controller_unittest.mm

Issue 2936833002: [ObjC ARC] Converts ios/chrome/browser/ui:unit_tests to ARC. (Closed)
Patch Set: Fix bad ARC guard. 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
Index: ios/chrome/browser/ui/page_not_available_controller_unittest.mm
diff --git a/ios/chrome/browser/ui/page_not_available_controller_unittest.mm b/ios/chrome/browser/ui/page_not_available_controller_unittest.mm
index 96f70d5ebb4ba2befd4f872ff06a7ba49cdfd50c..6c221366296d31e9f9f404f91e82d333b4281e76 100644
--- a/ios/chrome/browser/ui/page_not_available_controller_unittest.mm
+++ b/ios/chrome/browser/ui/page_not_available_controller_unittest.mm
@@ -4,17 +4,20 @@
#include <gtest/gtest.h>
#include "base/logging.h"
-#include "base/mac/scoped_nsobject.h"
#import "ios/chrome/browser/ui/page_not_available_controller.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
TEST(PageNotAvailableControllerTest, TestInitWithURL) {
GURL url = GURL("http://foo.bar.com");
- base::scoped_nsobject<PageNotAvailableController> controller(
- [[PageNotAvailableController alloc] initWithUrl:url]);
- EXPECT_EQ(url, controller.get().url);
- EXPECT_TRUE(controller.get().view);
+ PageNotAvailableController* controller =
+ [[PageNotAvailableController alloc] initWithUrl:url];
+ EXPECT_EQ(url, controller.url);
+ EXPECT_TRUE(controller.view);
}
} // namespace
« no previous file with comments | « ios/chrome/browser/ui/open_in_toolbar_unittest.mm ('k') | ios/chrome/browser/ui/preload_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698