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

Side by Side Diff: ios/chrome/browser/ui/browser_view_controller_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
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 #include <map> 5 #include <map>
6 6
7 #import <EarlGrey/EarlGrey.h> 7 #import <EarlGrey/EarlGrey.h>
8 #import <WebKit/WebKit.h> 8 #import <WebKit/WebKit.h>
9 #import <XCTest/XCTest.h> 9 #import <XCTest/XCTest.h>
10 10
11 #include "base/ios/ios_util.h" 11 #include "base/ios/ios_util.h"
12 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
13 #include "components/strings/grit/components_strings.h" 13 #include "components/strings/grit/components_strings.h"
14 #include "ios/chrome/browser/ui/ui_util.h" 14 #include "ios/chrome/browser/ui/ui_util.h"
15 #import "ios/chrome/test/app/chrome_test_util.h" 15 #import "ios/chrome/test/app/chrome_test_util.h"
16 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" 16 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
17 #import "ios/chrome/test/earl_grey/chrome_matchers.h" 17 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
18 #import "ios/chrome/test/earl_grey/chrome_test_case.h" 18 #import "ios/chrome/test/earl_grey/chrome_test_case.h"
19 #import "ios/web/public/test/http_server.h" 19 #include "ios/web/public/test/http_server/html_response_provider.h"
20 #include "ios/web/public/test/http_server_util.h" 20 #import "ios/web/public/test/http_server/http_server.h"
21 #include "ios/web/public/test/response_providers/html_response_provider.h" 21 #include "ios/web/public/test/http_server/http_server_util.h"
22 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
23 23
24 #if !defined(__has_feature) || !__has_feature(objc_arc) 24 #if !defined(__has_feature) || !__has_feature(objc_arc)
25 #error "This file requires ARC support." 25 #error "This file requires ARC support."
26 #endif 26 #endif
27 27
28 // This test suite only tests javascript in the omnibox. Nothing to do with BVC 28 // This test suite only tests javascript in the omnibox. Nothing to do with BVC
29 // really, the name is a bit misleading. 29 // really, the name is a bit misleading.
30 @interface BrowserViewControllerTestCase : ChromeTestCase 30 @interface BrowserViewControllerTestCase : ChromeTestCase
31 @end 31 @end
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 @"Did not navigate to the destination url."); 81 @"Did not navigate to the destination url.");
82 82
83 // Verifies that the destination page is shown. 83 // Verifies that the destination page is shown.
84 id<GREYMatcher> navigationMatcher = 84 id<GREYMatcher> navigationMatcher =
85 chrome_test_util::WebViewContainingText(responses[destinationURL]); 85 chrome_test_util::WebViewContainingText(responses[destinationURL]);
86 [[EarlGrey selectElementWithMatcher:grey_kindOfClass([WKWebView class])] 86 [[EarlGrey selectElementWithMatcher:grey_kindOfClass([WKWebView class])]
87 assertWithMatcher:navigationMatcher]; 87 assertWithMatcher:navigationMatcher];
88 } 88 }
89 89
90 @end 90 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/bookmarks/bookmarks_egtest.mm ('k') | ios/chrome/browser/ui/contextual_search/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698