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

Side by Side Diff: ios/web/shell/test/earl_grey/shell_base_test_case.mm

Issue 2166043004: Create base class for web shell Earl Grey tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #import "ios/web/shell/test/earl_grey/shell_base_test_case.h"
6
7 #import <EarlGrey/EarlGrey.h>
8
9 #import "ios/web/public/test/http_server.h"
10 #import "ios/web/shell/test/earl_grey/shell_matchers.h"
11
12 using web::test::HttpServer;
13 using web::webViewContainingText;
14
15 @implementation ShellBaseTestCase
16
17 // Set up called once for the class.
18 + (void)setUp {
19 [super setUp];
20 [[EarlGrey selectElementWithMatcher:webViewContainingText("Chromium")]
21 assertWithMatcher:grey_notNil()];
22 HttpServer::GetSharedInstance().StartOrDie();
23 }
24
25 // Tear down called once for the class.
26 + (void)tearDown {
27 HttpServer::GetSharedInstance().Stop();
28 [super tearDown];
29 }
30
31 // Tear down called after each test.
32 - (void)tearDown {
33 HttpServer::GetSharedInstance().RemoveAllResponseProviders();
34 [super tearDown];
35 }
36
37 @end
OLDNEW
« no previous file with comments | « ios/web/shell/test/earl_grey/shell_base_test_case.h ('k') | ios/web/shell/test/web_shell_navigation_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698