OLD | NEW |
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 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 grey_sufficientlyVisible(), nil); | 220 grey_sufficientlyVisible(), nil); |
221 } | 221 } |
222 | 222 |
223 id<GREYMatcher> CollectionViewSwitchCell(NSString* accessibilityIdentifier, | 223 id<GREYMatcher> CollectionViewSwitchCell(NSString* accessibilityIdentifier, |
224 BOOL isOn) { | 224 BOOL isOn) { |
225 return grey_allOf(grey_accessibilityID(accessibilityIdentifier), | 225 return grey_allOf(grey_accessibilityID(accessibilityIdentifier), |
226 CollectionViewSwitchIsOn(isOn), grey_sufficientlyVisible(), | 226 CollectionViewSwitchIsOn(isOn), grey_sufficientlyVisible(), |
227 nil); | 227 nil); |
228 } | 228 } |
229 | 229 |
| 230 id<GREYMatcher> OpenLinkInNewTabMenuItem() { |
| 231 return ButtonWithAccessibilityLabelId(IDS_IOS_CONTENT_CONTEXT_OPENLINKNEWTAB); |
| 232 } |
| 233 |
230 } // namespace chrome_test_util | 234 } // namespace chrome_test_util |
OLD | NEW |