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

Unified Diff: ios/web/shell/test/earl_grey/shell_base_test_case.mm

Issue 2740783002: Rename ShellBaseTestCase as WebShellTestCase. (Closed)
Patch Set: Created 3 years, 9 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
Index: ios/web/shell/test/earl_grey/shell_base_test_case.mm
diff --git a/ios/web/shell/test/earl_grey/shell_base_test_case.mm b/ios/web/shell/test/earl_grey/shell_base_test_case.mm
deleted file mode 100644
index c3d47dc9ddf6ea1db6faf60844c929f4989a8505..0000000000000000000000000000000000000000
--- a/ios/web/shell/test/earl_grey/shell_base_test_case.mm
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import "ios/web/shell/test/earl_grey/shell_base_test_case.h"
-
-#import <EarlGrey/EarlGrey.h>
-
-#import "ios/web/public/test/http_server.h"
-#import "ios/web/shell/test/earl_grey/shell_matchers.h"
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-using web::test::HttpServer;
-using web::WebViewContainingText;
-
-@implementation ShellBaseTestCase
-
-// Overrides |testInvocations| to skip all tests if a system alert view is
-// shown, since this isn't a case a user would encounter (i.e. they would
-// dismiss the alert first).
-+ (NSArray*)testInvocations {
- // TODO(crbug.com/654085): Simply skipping all tests isn't the best way to
- // handle this, it would be better to have something that is more obvious
- // on the bots that this is wrong, without making it look like test flake.
- NSError* error = nil;
- [[EarlGrey selectElementWithMatcher:grey_systemAlertViewShown()]
- assertWithMatcher:grey_nil()
- error:&error];
- if (error != nil) {
- NSLog(@"System alert view is present, so skipping all tests!");
- return @[];
- }
- return [super testInvocations];
-}
-
-// Set up called once for the class.
-+ (void)setUp {
- [super setUp];
- HttpServer::GetSharedInstance().StartOrDie();
-}
-
-// Tear down called once for the class.
-+ (void)tearDown {
- HttpServer::GetSharedInstance().Stop();
- [super tearDown];
-}
-
-// Tear down called after each test.
-- (void)tearDown {
- HttpServer::GetSharedInstance().RemoveAllResponseProviders();
- [super tearDown];
-}
-
-@end
« no previous file with comments | « ios/web/shell/test/earl_grey/shell_base_test_case.h ('k') | ios/web/shell/test/earl_grey/web_shell_test_case.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698