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

Unified Diff: ios/chrome/test/app/tab_test_util.mm

Issue 2888173002: [ObjC ARC] Converts ios/chrome/test/app:test_support to ARC. (Closed)
Patch Set: tighten deps exclusion 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/app/sync_test_util.mm ('k') | ios/chrome/test/app/web_view_interaction_test_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/test/app/tab_test_util.mm
diff --git a/ios/chrome/test/app/tab_test_util.mm b/ios/chrome/test/app/tab_test_util.mm
index c75a4f28a469afc9c9b076ca2519bd5bdf0374c6..95dffda942d131c9f8710ede1f54e75d4557e2e9 100644
--- a/ios/chrome/test/app/tab_test_util.mm
+++ b/ios/chrome/test/app/tab_test_util.mm
@@ -7,7 +7,6 @@
#import <Foundation/Foundation.h>
#import "base/mac/foundation_util.h"
-#import "base/mac/scoped_nsobject.h"
#import "ios/chrome/app/main_controller_private.h"
#import "ios/chrome/browser/autofill/form_input_accessory_view_controller.h"
#include "ios/chrome/browser/experimental_flags.h"
@@ -21,6 +20,11 @@
#import "ios/chrome/browser/ui/tabs/tab_strip_controller_private.h"
#import "ios/chrome/test/app/chrome_test_util.h"
#import "ios/testing/wait_util.h"
+#import "ios/web/web_state/ui/crw_web_controller.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
namespace chrome_test_util {
@@ -46,16 +50,16 @@ BOOL IsIncognitoMode() {
void OpenNewTab() {
@autoreleasepool { // Make sure that all internals are deallocated.
- base::scoped_nsobject<GenericChromeCommand> command(
- [[GenericChromeCommand alloc] initWithTag:IDC_NEW_TAB]);
+ GenericChromeCommand* command =
+ [[GenericChromeCommand alloc] initWithTag:IDC_NEW_TAB];
chrome_test_util::RunCommandWithActiveViewController(command);
}
}
void OpenNewIncognitoTab() {
@autoreleasepool { // Make sure that all internals are deallocated.
- base::scoped_nsobject<GenericChromeCommand> command(
- [[GenericChromeCommand alloc] initWithTag:IDC_NEW_INCOGNITO_TAB]);
+ GenericChromeCommand* command =
+ [[GenericChromeCommand alloc] initWithTag:IDC_NEW_INCOGNITO_TAB];
chrome_test_util::RunCommandWithActiveViewController(command);
}
}
« no previous file with comments | « ios/chrome/test/app/sync_test_util.mm ('k') | ios/chrome/test/app/web_view_interaction_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698