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

Side by Side Diff: ios/chrome/test/earl_grey/chrome_matchers.mm

Issue 2867553002: Make settings_egtest.mm work in landscape on small phones. (Closed)
Patch Set: revert extra history_ui_egtest change 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 unified diff | Download patch
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_matchers.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ios/chrome/test/earl_grey/chrome_matchers.h" 5 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
6 6
7 #import <OCHamcrest/OCHamcrest.h> 7 #import <OCHamcrest/OCHamcrest.h>
8 8
9 #import <WebKit/WebKit.h> 9 #import <WebKit/WebKit.h>
10 10
11 #include "base/mac/foundation_util.h" 11 #include "base/mac/foundation_util.h"
12 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
13 #import "base/test/ios/wait_util.h" 13 #import "base/test/ios/wait_util.h"
14 #include "components/strings/grit/components_strings.h" 14 #include "components/strings/grit/components_strings.h"
15 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_switch_item .h" 15 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_switch_item .h"
16 #import "ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.h" 16 #import "ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.h"
17 #import "ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_cont roller.h"
17 #import "ios/chrome/browser/ui/static_content/static_html_view_controller.h" 18 #import "ios/chrome/browser/ui/static_content/static_html_view_controller.h"
18 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" 19 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h"
20 #import "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h"
19 #import "ios/chrome/browser/ui/uikit_ui_util.h" 21 #import "ios/chrome/browser/ui/uikit_ui_util.h"
20 #include "ios/chrome/grit/ios_strings.h" 22 #include "ios/chrome/grit/ios_strings.h"
21 #import "ios/chrome/test/app/chrome_test_util.h" 23 #import "ios/chrome/test/app/chrome_test_util.h"
22 #import "ios/testing/wait_util.h" 24 #import "ios/testing/wait_util.h"
23 #import "ios/web/public/block_types.h" 25 #import "ios/web/public/block_types.h"
24 #import "ios/web/public/test/earl_grey/web_view_matchers.h" 26 #import "ios/web/public/test/earl_grey/web_view_matchers.h"
25 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
26 #include "ui/base/test/ios/ui_image_test_utils.h" 28 #include "ui/base/test/ios/ui_image_test_utils.h"
27 29
28 #if !defined(__has_feature) || !__has_feature(objc_arc) 30 #if !defined(__has_feature) || !__has_feature(objc_arc)
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 171
170 id<GREYMatcher> NavigationBarDoneButton() { 172 id<GREYMatcher> NavigationBarDoneButton() {
171 return ButtonWithAccessibilityLabelId(IDS_IOS_NAVIGATION_BAR_DONE_BUTTON); 173 return ButtonWithAccessibilityLabelId(IDS_IOS_NAVIGATION_BAR_DONE_BUTTON);
172 } 174 }
173 175
174 id<GREYMatcher> AccountConsistencySetupSigninButton() { 176 id<GREYMatcher> AccountConsistencySetupSigninButton() {
175 return ButtonWithAccessibilityLabelId( 177 return ButtonWithAccessibilityLabelId(
176 IDS_IOS_ACCOUNT_CONSISTENCY_SETUP_SIGNIN_BUTTON); 178 IDS_IOS_ACCOUNT_CONSISTENCY_SETUP_SIGNIN_BUTTON);
177 } 179 }
178 180
181 id<GREYMatcher> ClearBrowsingDataCollectionView() {
182 return grey_accessibilityID(kClearBrowsingDataCollectionViewId);
183 }
184
185 id<GREYMatcher> SettingsMenuButton() {
186 return grey_accessibilityID(kToolsMenuSettingsId);
187 }
188
179 } // namespace chrome_test_util 189 } // namespace chrome_test_util
OLDNEW
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_matchers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698