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

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

Issue 2665423002: Update web shell app to not load dev.chromium.org on launch. (Closed)
Patch Set: remove chrome code Created 3 years, 10 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 | « no previous file | ios/web/shell/test/earl_grey/shell_earl_grey.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 "ios/web/shell/test/earl_grey/shell_base_test_case.h" 5 #import "ios/web/shell/test/earl_grey/shell_base_test_case.h"
6 6
7 #import <EarlGrey/EarlGrey.h> 7 #import <EarlGrey/EarlGrey.h>
8 8
9 #import "ios/web/public/test/http_server.h" 9 #import "ios/web/public/test/http_server.h"
10 #import "ios/web/shell/test/earl_grey/shell_matchers.h" 10 #import "ios/web/shell/test/earl_grey/shell_matchers.h"
(...skipping 21 matching lines...) Expand all
32 if (error != nil) { 32 if (error != nil) {
33 NSLog(@"System alert view is present, so skipping all tests!"); 33 NSLog(@"System alert view is present, so skipping all tests!");
34 return @[]; 34 return @[];
35 } 35 }
36 return [super testInvocations]; 36 return [super testInvocations];
37 } 37 }
38 38
39 // Set up called once for the class. 39 // Set up called once for the class.
40 + (void)setUp { 40 + (void)setUp {
41 [super setUp]; 41 [super setUp];
42 [[EarlGrey selectElementWithMatcher:WebViewContainingText("Chromium")]
43 assertWithMatcher:grey_notNil()];
44 HttpServer::GetSharedInstance().StartOrDie(); 42 HttpServer::GetSharedInstance().StartOrDie();
45 } 43 }
46 44
47 // Tear down called once for the class. 45 // Tear down called once for the class.
48 + (void)tearDown { 46 + (void)tearDown {
49 HttpServer::GetSharedInstance().Stop(); 47 HttpServer::GetSharedInstance().Stop();
50 [super tearDown]; 48 [super tearDown];
51 } 49 }
52 50
53 // Tear down called after each test. 51 // Tear down called after each test.
54 - (void)tearDown { 52 - (void)tearDown {
55 HttpServer::GetSharedInstance().RemoveAllResponseProviders(); 53 HttpServer::GetSharedInstance().RemoveAllResponseProviders();
56 [super tearDown]; 54 [super tearDown];
57 } 55 }
58 56
59 @end 57 @end
OLDNEW
« no previous file with comments | « no previous file | ios/web/shell/test/earl_grey/shell_earl_grey.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698