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

Side by Side Diff: ios/chrome/browser/ui/external_url_error_page_egtest.mm

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: don't break downstream clients Created 3 years, 6 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 | « ios/chrome/browser/ui/downloads/BUILD.gn ('k') | ios/chrome/browser/ui/find_bar/BUILD.gn » ('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 <EarlGrey/EarlGrey.h> 5 #import <EarlGrey/EarlGrey.h>
6 6
7 #include "components/strings/grit/components_strings.h" 7 #include "components/strings/grit/components_strings.h"
8 #import "ios/chrome/test/app/chrome_test_util.h" 8 #import "ios/chrome/test/app/chrome_test_util.h"
9 #include "ios/chrome/test/app/web_view_interaction_test_util.h" 9 #include "ios/chrome/test/app/web_view_interaction_test_util.h"
10 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" 10 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
11 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 11 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
12 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 12 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
13 #import "ios/web/public/test/earl_grey/web_view_matchers.h" 13 #import "ios/web/public/test/earl_grey/web_view_matchers.h"
14 #import "ios/web/public/test/http_server.h" 14 #include "ios/web/public/test/http_server/data_response_provider.h"
15 #include "ios/web/public/test/http_server_util.h" 15 #include "ios/web/public/test/http_server/error_page_response_provider.h"
16 #include "ios/web/public/test/response_providers/data_response_provider.h" 16 #import "ios/web/public/test/http_server/http_server.h"
17 #include "ios/web/public/test/response_providers/error_page_response_provider.h" 17 #include "ios/web/public/test/http_server/http_server_util.h"
18 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
19 #include "ui/base/l10n/l10n_util_mac.h" 19 #include "ui/base/l10n/l10n_util_mac.h"
20 20
21 #if !defined(__has_feature) || !__has_feature(objc_arc) 21 #if !defined(__has_feature) || !__has_feature(objc_arc)
22 #error "This file requires ARC support." 22 #error "This file requires ARC support."
23 #endif 23 #endif
24 24
25 using chrome_test_util::OmniboxText; 25 using chrome_test_util::OmniboxText;
26 using chrome_test_util::TapWebViewElementWithId; 26 using chrome_test_util::TapWebViewElementWithId;
27 using chrome_test_util::WebViewContainingText; 27 using chrome_test_util::WebViewContainingText;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 [ChromeEarlGrey loadURL:URL]; 176 [ChromeEarlGrey loadURL:URL];
177 TapWebViewElementWithId(kButtonId); 177 TapWebViewElementWithId(kButtonId);
178 // Check that the timer has completed. 178 // Check that the timer has completed.
179 [[EarlGrey selectElementWithMatcher:WebViewContainingText(kTimerCompleted)] 179 [[EarlGrey selectElementWithMatcher:WebViewContainingText(kTimerCompleted)]
180 assertWithMatcher:grey_notNil()]; 180 assertWithMatcher:grey_notNil()];
181 // DNS error page should still not appear. 181 // DNS error page should still not appear.
182 [self checkErrorPageIsNotVisible]; 182 [self checkErrorPageIsNotVisible];
183 } 183 }
184 184
185 @end 185 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/downloads/BUILD.gn ('k') | ios/chrome/browser/ui/find_bar/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698