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

Side by Side Diff: ios/chrome/browser/ui/settings/clear_browsing_data_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 #include "components/strings/grit/components_strings.h" 7 #include "components/strings/grit/components_strings.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 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" 10 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
11 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" 11 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
12 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 12 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
13 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 13 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 #if !defined(__has_feature) || !__has_feature(objc_arc)
17 #error "This file requires ARC support."
18 #endif
19
16 using chrome_test_util::ButtonWithAccessibilityLabel; 20 using chrome_test_util::ButtonWithAccessibilityLabel;
17 using chrome_test_util::ButtonWithAccessibilityLabelId; 21 using chrome_test_util::ButtonWithAccessibilityLabelId;
18 using chrome_test_util::NavigationBarDoneButton; 22 using chrome_test_util::NavigationBarDoneButton;
19 23
20 @interface ClearBrowsingDataSettingsTestCase : ChromeTestCase 24 @interface ClearBrowsingDataSettingsTestCase : ChromeTestCase
21 @end 25 @end
22 26
23 @implementation ClearBrowsingDataSettingsTestCase 27 @implementation ClearBrowsingDataSettingsTestCase
24 28
25 - (void)openClearBrowsingDataDialog { 29 - (void)openClearBrowsingDataDialog {
(...skipping 28 matching lines...) Expand all
54 [defaults stringForKey:@"EnableNewClearBrowsingDataUI"]; 58 [defaults stringForKey:@"EnableNewClearBrowsingDataUI"];
55 [defaults setObject:@"Enabled" forKey:@"EnableNewClearBrowsingDataUI"]; 59 [defaults setObject:@"Enabled" forKey:@"EnableNewClearBrowsingDataUI"];
56 60
57 [self openClearBrowsingDataDialog]; 61 [self openClearBrowsingDataDialog];
58 [self exitSettingsMenu]; 62 [self exitSettingsMenu];
59 63
60 [defaults setObject:oldSetting forKey:@"EnableNewClearBrowsingDataUI"]; 64 [defaults setObject:oldSetting forKey:@"EnableNewClearBrowsingDataUI"];
61 } 65 }
62 66
63 @end 67 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/settings/block_popups_egtest.mm ('k') | ios/chrome/browser/ui/settings/settings_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698