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

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

Issue 2275843003: Add support for webViewContainingBlockedImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Conform to c style guide Created 4 years, 4 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/testing/earl_grey/wait_util.mm ('k') | ios/web/public/test/earl_grey/web_view_matchers.mm » ('j') | 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 <string> 5 #import <string>
6 6
7 #import <EarlGrey/EarlGrey.h> 7 #import <EarlGrey/EarlGrey.h>
8 8
9 #import "ios/web/public/web_state/web_state.h" 9 #import "ios/web/public/web_state/web_state.h"
10 10
11 namespace web { 11 namespace web {
12 12
13 // Matcher for WKWebView which belogs to the given |webState|. 13 // Matcher for WKWebView which belogs to the given |webState|.
14 id<GREYMatcher> webViewInWebState(WebState* web_state); 14 id<GREYMatcher> webViewInWebState(WebState* web_state);
15 15
16 // Matcher for WKWebView containing |text|. 16 // Matcher for WKWebView containing |text|.
17 id<GREYMatcher> webViewContainingText(std::string text, WebState* web_state); 17 id<GREYMatcher> webViewContainingText(std::string text, WebState* web_state);
18 18
19 // Matcher for WKWebView containing a blocked |image_id|. When blocked, the
20 // image will be smaller than |expected_size|.
21 id<GREYMatcher> webViewContainingBlockedImage(std::string image_id,
22 CGSize expected_size,
23 WebState* web_state);
24
19 // Matcher for WKWebView containing an html element which matches |selector|. 25 // Matcher for WKWebView containing an html element which matches |selector|.
20 id<GREYMatcher> webViewCssSelector(std::string selector, WebState* web_state); 26 id<GREYMatcher> webViewCssSelector(std::string selector, WebState* web_state);
21 27
22 // Matcher for WKWebView's scroll view. 28 // Matcher for WKWebView's scroll view.
23 id<GREYMatcher> webViewScrollView(WebState* web_state); 29 id<GREYMatcher> webViewScrollView(WebState* web_state);
24 30
25 } // namespace web 31 } // namespace web
OLDNEW
« no previous file with comments | « ios/testing/earl_grey/wait_util.mm ('k') | ios/web/public/test/earl_grey/web_view_matchers.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698