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

Unified Diff: ios/chrome/browser/web/forms_egtest.mm

Issue 2890003002: [ObjC ARC] Converts ios/chrome/browser/web:eg_tests to ARC. (Closed)
Patch Set: Created 3 years, 7 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/web/forms_egtest.mm
diff --git a/ios/chrome/browser/web/forms_egtest.mm b/ios/chrome/browser/web/forms_egtest.mm
index cb0ca649b9bc26c0004897cc506d98f0db9ea6c7..6ba882ee4ad9bd1fb00cf596da48d8845a9b67cf 100644
--- a/ios/chrome/browser/web/forms_egtest.mm
+++ b/ios/chrome/browser/web/forms_egtest.mm
@@ -22,6 +22,10 @@
#include "ios/web/public/test/response_providers/data_response_provider.h"
#include "ios/web/public/test/url_test_util.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
using chrome_test_util::ButtonWithAccessibilityLabelId;
using chrome_test_util::OmniboxText;
using chrome_test_util::WebViewContainingText;
@@ -275,14 +279,13 @@ void TestFormRedirectResponseProvider::GetResponseHeadersAndBody(
// to cancel form repost.
if (IsIPadIdiom()) {
// On tablet, dismiss the popover.
- base::scoped_nsobject<GREYElementMatcherBlock> matcher([
- [GREYElementMatcherBlock alloc]
+ GREYElementMatcherBlock* matcher = [[GREYElementMatcherBlock alloc]
initWithMatchesBlock:^BOOL(UIView* view) {
return [NSStringFromClass([view class]) hasPrefix:@"UIDimmingView"];
}
descriptionBlock:^(id<GREYDescription> description) {
[description appendText:@"class prefixed with UIDimmingView"];
- }]);
+ }];
[[EarlGrey selectElementWithMatcher:matcher]
performAction:grey_tapAtPoint(CGPointMake(50.0f, 50.0f))];
} else {
« no previous file with comments | « ios/chrome/browser/web/child_window_open_by_dom_egtest.mm ('k') | ios/chrome/browser/web/http_auth_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698