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

Unified Diff: ios/web/shell/test/pdf_egtest.mm

Issue 2642193012: Make EarlGrey matchers compliant with Chromium style. (Closed)
Patch Set: build.gn and rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/shell/test/page_state_egtest.mm ('k') | ios/web/shell/test/plugin_placeholder_egtest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/test/pdf_egtest.mm
diff --git a/ios/web/shell/test/pdf_egtest.mm b/ios/web/shell/test/pdf_egtest.mm
index c240bf3501783ac463674e1df46436c7e481976a..565618a33228e8195ce1942421e83b63b120b38f 100644
--- a/ios/web/shell/test/pdf_egtest.mm
+++ b/ios/web/shell/test/pdf_egtest.mm
@@ -23,7 +23,7 @@ const char kTestPDFURL[] =
"http://ios/web/shell/test/http_server_files/testpage.pdf";
// Matcher for WKWebView displaying PDF.
-id<GREYMatcher> webViewWithPdf() {
+id<GREYMatcher> WebViewWithPdf() {
web::WebState* web_state = web::shell_test_util::GetCurrentWebState();
MatchesBlock matches = ^BOOL(UIView* view) {
return testing::WaitUntilConditionOrTimeout(
@@ -37,7 +37,7 @@ id<GREYMatcher> webViewWithPdf() {
};
return grey_allOf(
- webViewInWebState(web_state),
+ WebViewInWebState(web_state),
[[GREYElementMatcherBlock alloc] initWithMatchesBlock:matches
descriptionBlock:describe],
nil);
@@ -57,7 +57,7 @@ using web::test::HttpServer;
- (void)testMIMEType {
web::test::SetUpFileBasedHttpServer();
[ShellEarlGrey loadURL:HttpServer::MakeUrl(kTestPDFURL)];
- [[EarlGrey selectElementWithMatcher:webViewWithPdf()]
+ [[EarlGrey selectElementWithMatcher:WebViewWithPdf()]
assertWithMatcher:grey_notNil()];
}
« no previous file with comments | « ios/web/shell/test/page_state_egtest.mm ('k') | ios/web/shell/test/plugin_placeholder_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698