Chromium Code Reviews| Index: ios/showcase/test/showcase_matchers.mm |
| diff --git a/ios/showcase/test/showcase_matchers.mm b/ios/showcase/test/showcase_matchers.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a8ade540f6236b9d18fc8bd305d686fb20080cf3 |
| --- /dev/null |
| +++ b/ios/showcase/test/showcase_matchers.mm |
| @@ -0,0 +1,18 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#import "ios/showcase/test/showcase_matchers.h" |
| + |
| +#if !defined(__has_feature) || !__has_feature(objc_arc) |
| +#error "This file requires ARC support." |
| +#endif |
| + |
| +namespace showcase_matchers { |
| + |
| +id<GREYMatcher> FirstLevelBackButton() { |
| + return grey_allOf(grey_accessibilityLabel(@"Showcase"), |
| + grey_kindOfClass([UILabel class]), nil); |
|
edchin
2017/03/21 17:04:20
This matcher seems too generic. Is there some iden
lpromero
2017/03/21 22:41:59
I propose:
return grey_kindOfClass(
NSClas
|
| +} |
| + |
| +} // namespace showcase_matchers |