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

Side by Side Diff: ios/web/shell/test/pdf_egtest.mm

Issue 2195773002: Rename EarlGrey test classes with TestCase suffix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: after successful sync 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
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 "base/test/ios/wait_util.h" 7 #include "base/test/ios/wait_util.h"
8 #include "ios/testing/earl_grey/wait_util.h" 8 #include "ios/testing/earl_grey/wait_util.h"
9 #import "ios/web/public/test/earl_grey/web_view_matchers.h" 9 #import "ios/web/public/test/earl_grey/web_view_matchers.h"
10 #import "ios/web/public/test/http_server.h" 10 #import "ios/web/public/test/http_server.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 descriptionBlock:describe], 50 descriptionBlock:describe],
51 nil); 51 nil);
52 } 52 }
53 53
54 } // namespace 54 } // namespace
55 55
56 using web::shell_test_util::LoadUrl; 56 using web::shell_test_util::LoadUrl;
57 using web::test::HttpServer; 57 using web::test::HttpServer;
58 58
59 // PDF test cases for the web shell. 59 // PDF test cases for the web shell.
60 @interface PDFTest : ShellBaseTestCase 60 @interface PDFTestCase : ShellBaseTestCase
61 @end 61 @end
62 62
63 @implementation PDFTest 63 @implementation PDFTestCase
64 64
65 // Tests MIME type of the loaded PDF document. 65 // Tests MIME type of the loaded PDF document.
66 - (void)testMIMEType { 66 - (void)testMIMEType {
67 web::test::SetUpFileBasedHttpServer(); 67 web::test::SetUpFileBasedHttpServer();
68 LoadUrl(HttpServer::MakeUrl(kTestPDFURL)); 68 LoadUrl(HttpServer::MakeUrl(kTestPDFURL));
69 [[EarlGrey selectElementWithMatcher:webViewWithPdf()] 69 [[EarlGrey selectElementWithMatcher:webViewWithPdf()]
70 assertWithMatcher:grey_notNil()]; 70 assertWithMatcher:grey_notNil()];
71 } 71 }
72 72
73 @end 73 @end
OLDNEW
« 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