Chromium Code Reviews| 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 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ | 5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ |
| 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ | 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #import <EarlGrey/EarlGrey.h> | 10 #import <EarlGrey/EarlGrey.h> |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 119 | 119 |
| 120 // Returns matcher for the menu button to sync accounts. | 120 // Returns matcher for the menu button to sync accounts. |
| 121 id<GREYMatcher> AccountsSyncButton(); | 121 id<GREYMatcher> AccountsSyncButton(); |
| 122 | 122 |
| 123 // Returns matcher for the Content Settings button on the main Settings screen. | 123 // Returns matcher for the Content Settings button on the main Settings screen. |
| 124 id<GREYMatcher> ContentSettingsButton(); | 124 id<GREYMatcher> ContentSettingsButton(); |
| 125 | 125 |
| 126 // Returns matcher for the back button on a settings menu. | 126 // Returns matcher for the back button on a settings menu. |
| 127 id<GREYMatcher> SettingsMenuBackButton(); | 127 id<GREYMatcher> SettingsMenuBackButton(); |
| 128 | 128 |
| 129 // Returns matcher that looks for text in UILabel, UITextView, and UITextField | |
| 130 // objects. The text comparison is performed with NSString's containsText: | |
|
baxley
2017/06/26 08:25:37
Is it worthwhile exposing the implementation detai
PL
2017/06/26 23:51:47
Done!
| |
| 131 // method. | |
| 132 id<GREYMatcher> ContainsText(NSString* text); | |
|
baxley
2017/06/26 08:25:37
Can you think of many other use cases where this i
PL
2017/06/26 23:51:47
I was a bit surprised this was the first time this
| |
| 133 | |
| 129 } // namespace chrome_test_util | 134 } // namespace chrome_test_util |
| 130 | 135 |
| 131 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ | 136 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ |
| OLD | NEW |