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

Side by Side Diff: ios/chrome/browser/ui/settings/autofill_settings_egtest.mm

Issue 2796043002: [ObjC ARC] Converts ios/chrome/browser/ui/settings:eg_tests to ARC. (Closed)
Patch Set: s/unsafe/weak Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <XCTest/XCTest.h> 5 #import <XCTest/XCTest.h>
6 6
7 #import "base/mac/bind_objc_block.h" 7 #import "base/mac/bind_objc_block.h"
8 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" 8 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h"
9 #include "ios/chrome/grit/ios_strings.h" 9 #include "ios/chrome/grit/ios_strings.h"
10 #include "ios/chrome/test/app/web_view_interaction_test_util.h" 10 #include "ios/chrome/test/app/web_view_interaction_test_util.h"
11 #include "ios/chrome/test/earl_grey/accessibility_util.h" 11 #include "ios/chrome/test/earl_grey/accessibility_util.h"
12 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" 12 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
13 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" 13 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
14 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 14 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
15 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 15 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
16 #import "ios/web/public/test/http_server.h" 16 #import "ios/web/public/test/http_server.h"
17 #include "ios/web/public/test/http_server_util.h" 17 #include "ios/web/public/test/http_server_util.h"
18 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
19 19
20 #if !defined(__has_feature) || !__has_feature(objc_arc)
21 #error "This file requires ARC support."
22 #endif
23
20 using chrome_test_util::ButtonWithAccessibilityLabel; 24 using chrome_test_util::ButtonWithAccessibilityLabel;
21 using chrome_test_util::ButtonWithAccessibilityLabelId; 25 using chrome_test_util::ButtonWithAccessibilityLabelId;
22 using chrome_test_util::NavigationBarDoneButton; 26 using chrome_test_util::NavigationBarDoneButton;
23 27
24 namespace { 28 namespace {
25 29
26 // Expectation of how the saved autofill profile looks like, a map from cell 30 // Expectation of how the saved autofill profile looks like, a map from cell
27 // name IDs to expected contents. 31 // name IDs to expected contents.
28 struct DisplayStringIDToExpectedResult { 32 struct DisplayStringIDToExpectedResult {
29 int display_string_id; 33 int display_string_id;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Switch on edit mode. 241 // Switch on edit mode.
238 [[EarlGrey selectElementWithMatcher:ButtonWithAccessibilityLabelId( 242 [[EarlGrey selectElementWithMatcher:ButtonWithAccessibilityLabelId(
239 IDS_IOS_NAVIGATION_BAR_EDIT_BUTTON)] 243 IDS_IOS_NAVIGATION_BAR_EDIT_BUTTON)]
240 performAction:grey_tap()]; 244 performAction:grey_tap()];
241 chrome_test_util::VerifyAccessibilityForCurrentScreen(); 245 chrome_test_util::VerifyAccessibilityForCurrentScreen();
242 246
243 [self exitSettingsMenu]; 247 [self exitSettingsMenu];
244 } 248 }
245 249
246 @end 250 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/settings/accounts_collection_egtest.mm ('k') | ios/chrome/browser/ui/settings/block_popups_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698