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

Unified Diff: ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm

Issue 2686913003: [ObjC ARC] Converts ios/chrome/browser/ui/dialogs:unit_tests_internal to ARC. (Closed)
Patch Set: Created 3 years, 10 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/dialogs/dialog_presenter_unittest.mm
diff --git a/ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm b/ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm
index 7e498f78eb81b609270872b6bcd6bd153e9eacdd..2a566bf9b0e389edf4b0a1bc5d1a937df14f586c 100644
--- a/ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm
+++ b/ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm
@@ -4,7 +4,6 @@
#import "ios/chrome/browser/ui/dialogs/dialog_presenter.h"
-#import "base/mac/scoped_nsobject.h"
#include "base/time/time.h"
#import "ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h"
#import "ios/web/public/test/fakes/test_web_state.h"
@@ -14,6 +13,10 @@
#include "testing/platform_test.h"
#include "url/gurl.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
// TestWebState subclass that supports the WebStateDestroyed() callback for a
// single observer.
@@ -77,9 +80,9 @@ class DialogPresenterTest : public PlatformTest {
DialogPresenter* presenter() { return presenter_; }
private:
- base::scoped_nsobject<TestDialogPresenterDelegate> delegate_;
- base::scoped_nsobject<UIViewController> viewController_;
- base::scoped_nsobject<DialogPresenter> presenter_;
+ TestDialogPresenterDelegate* delegate_;
+ UIViewController* viewController_;
+ DialogPresenter* presenter_;
};
// Tests that a dialog was successfully shown and that the delegate was notified
« no previous file with comments | « ios/chrome/browser/ui/dialogs/BUILD.gn ('k') | ios/chrome/browser/ui/dialogs/nsurl_protection_space_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698