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

Unified Diff: ios/web/web_state/js/crw_js_post_request_loader_unittest.mm

Issue 2933373002: [ObjC ARC] Converts ios/web:ios_web_web_state_js_unittests to ARC. (Closed)
Patch Set: 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/web/web_state/js/crw_js_post_request_loader_unittest.mm
diff --git a/ios/web/web_state/js/crw_js_post_request_loader_unittest.mm b/ios/web/web_state/js/crw_js_post_request_loader_unittest.mm
index ae45d4cc78d5948c7a52ed933f4c24628750fd5b..82c13cb5b7eb8baf5f9f38c4baf90d9100216fd9 100644
--- a/ios/web/web_state/js/crw_js_post_request_loader_unittest.mm
+++ b/ios/web/web_state/js/crw_js_post_request_loader_unittest.mm
@@ -7,7 +7,6 @@
#import <WebKit/WebKit.h>
#import "base/mac/foundation_util.h"
-#import "base/mac/scoped_nsobject.h"
#include "base/strings/sys_string_conversions.h"
#import "base/test/ios/wait_util.h"
#include "ios/web/public/test/web_test.h"
@@ -16,6 +15,10 @@
#import "testing/gtest_mac.h"
#import "third_party/ocmock/OCMock/OCMock.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace base {
namespace {
@@ -40,16 +43,15 @@ NSString* const kBlobToBase64StringScript =
#else
#define MAYBE_LoadsCorrectHTML DISABLED_LoadsCorrectHTML
#endif
+
TEST_F(CRWJSPOSTRequestLoaderTest, MAYBE_LoadsCorrectHTML) {
// Set up necessary objects.
- scoped_nsobject<CRWJSPOSTRequestLoader> loader(
- [[CRWJSPOSTRequestLoader alloc] init]);
+ CRWJSPOSTRequestLoader* loader = [[CRWJSPOSTRequestLoader alloc] init];
WKWebView* web_view = web::BuildWKWebView(CGRectZero, GetBrowserState());
WKUserContentController* contentController =
web_view.configuration.userContentController;
- scoped_nsobject<CRWWKScriptMessageRouter> messageRouter(
- [[CRWWKScriptMessageRouter alloc]
- initWithUserContentController:contentController]);
+ CRWWKScriptMessageRouter* messageRouter = [[CRWWKScriptMessageRouter alloc]
+ initWithUserContentController:contentController];
// Override XMLHttpRequest.send() to call kBlobToBase64StringScript.
__block BOOL overrideSuccessfull = NO;
« no previous file with comments | « ios/web/web_state/js/crw_js_injection_manager_unittest.mm ('k') | ios/web/web_state/js/crw_js_window_id_manager_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698