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

Side by Side Diff: ios/web/public/test/earl_grey/web_view_matchers.h

Issue 1950323002: Refactor web shell integration tests utilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alphabetize Created 4 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
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 <EarlGrey/EarlGrey.h> 5 #import <EarlGrey/EarlGrey.h>
6 6
7 #include "ios/web/public/web_state/web_state.h"
8
7 namespace web { 9 namespace web {
8 10
9 // Shorthand for GREYMatchers::matcherForWebViewContainingText. 11 // Shorthand for GREYMatchers::matcherForWebViewContainingText:inWebState.
10 id<GREYMatcher> webViewContainingText(NSString* text); 12 id<GREYMatcher> webViewContainingText(NSString* text, web::WebState* webState);
11 13
12 } // namespace web 14 } // namespace web
13 15
14 @interface GREYMatchers (WebViewAdditions) 16 @interface GREYMatchers (WebViewAdditions)
15 17
16 // Matcher for WKWebView containing |text|. 18 // Matcher for WKWebView containing |text|.
17 + (id<GREYMatcher>)matcherForWebViewContainingText:(NSString*)text; 19 + (id<GREYMatcher>)matcherForWebViewContainingText:(NSString*)text
20 inWebState:(web::WebState*)webState;
18 21
19 @end 22 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698