OLD | NEW |
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 <XCTest/XCTest.h> | 5 #import <XCTest/XCTest.h> |
6 | 6 |
7 #include "base/ios/ios_util.h" | 7 #include "base/ios/ios_util.h" |
8 #include "components/strings/grit/components_strings.h" | 8 #include "components/strings/grit/components_strings.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/http_server.h" | 13 #include "ios/web/public/test/http_server/data_response_provider.h" |
14 #include "ios/web/public/test/http_server_util.h" | 14 #import "ios/web/public/test/http_server/http_server.h" |
15 #include "ios/web/public/test/response_providers/data_response_provider.h" | 15 #include "ios/web/public/test/http_server/http_server_util.h" |
16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
17 | 17 |
18 #if !defined(__has_feature) || !__has_feature(objc_arc) | 18 #if !defined(__has_feature) || !__has_feature(objc_arc) |
19 #error "This file requires ARC support." | 19 #error "This file requires ARC support." |
20 #endif | 20 #endif |
21 | 21 |
22 using chrome_test_util::BackButton; | 22 using chrome_test_util::BackButton; |
23 using chrome_test_util::ForwardButton; | 23 using chrome_test_util::ForwardButton; |
24 using chrome_test_util::TapWebViewElementWithId; | 24 using chrome_test_util::TapWebViewElementWithId; |
25 using chrome_test_util::WebViewContainingText; | 25 using chrome_test_util::WebViewContainingText; |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 // Navigate forward and assert the the resulting page is the proper | 679 // Navigate forward and assert the the resulting page is the proper |
680 // destination. | 680 // destination. |
681 [[EarlGrey selectElementWithMatcher:ForwardButton()] | 681 [[EarlGrey selectElementWithMatcher:ForwardButton()] |
682 performAction:grey_tap()]; | 682 performAction:grey_tap()]; |
683 [[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText( | 683 [[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText( |
684 destinationURL.GetContent())] | 684 destinationURL.GetContent())] |
685 assertWithMatcher:grey_notNil()]; | 685 assertWithMatcher:grey_notNil()]; |
686 } | 686 } |
687 | 687 |
688 @end | 688 @end |
OLD | NEW |