| 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 #include <map> | 6 #include <map> |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/ios/ios_util.h" | 10 #include "base/ios/ios_util.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "ios/chrome/test/app/navigation_test_util.h" | 21 #include "ios/chrome/test/app/navigation_test_util.h" |
| 22 #include "ios/chrome/test/app/web_view_interaction_test_util.h" | 22 #include "ios/chrome/test/app/web_view_interaction_test_util.h" |
| 23 #import "ios/chrome/test/earl_grey/chrome_assertions.h" | 23 #import "ios/chrome/test/earl_grey/chrome_assertions.h" |
| 24 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 24 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
| 25 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" | 25 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" |
| 26 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 26 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
| 27 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 27 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
| 28 #import "ios/testing/wait_util.h" | 28 #import "ios/testing/wait_util.h" |
| 29 #import "ios/web/public/test/earl_grey/web_view_actions.h" | 29 #import "ios/web/public/test/earl_grey/web_view_actions.h" |
| 30 #import "ios/web/public/test/earl_grey/web_view_matchers.h" | 30 #import "ios/web/public/test/earl_grey/web_view_matchers.h" |
| 31 #import "ios/web/public/test/http_server.h" | 31 #include "ios/web/public/test/http_server/data_response_provider.h" |
| 32 #include "ios/web/public/test/http_server_util.h" | 32 #import "ios/web/public/test/http_server/http_server.h" |
| 33 #include "ios/web/public/test/response_providers/data_response_provider.h" | 33 #include "ios/web/public/test/http_server/http_server_util.h" |
| 34 #include "net/http/http_response_headers.h" | 34 #include "net/http/http_response_headers.h" |
| 35 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
| 36 #include "url/gurl.h" | 36 #include "url/gurl.h" |
| 37 | 37 |
| 38 #if !defined(__has_feature) || !__has_feature(objc_arc) | 38 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 39 #error "This file requires ARC support." | 39 #error "This file requires ARC support." |
| 40 #endif | 40 #endif |
| 41 | 41 |
| 42 using chrome_test_util::OmniboxText; | 42 using chrome_test_util::OmniboxText; |
| 43 using chrome_test_util::WebViewContainingText; | 43 using chrome_test_util::WebViewContainingText; |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 | 652 |
| 653 // Go back and verify that the browser navigates to the original URL. | 653 // Go back and verify that the browser navigates to the original URL. |
| 654 [self goBack]; | 654 [self goBack]; |
| 655 [[EarlGrey selectElementWithMatcher:WebViewContainingText("hello!")] | 655 [[EarlGrey selectElementWithMatcher:WebViewContainingText("hello!")] |
| 656 assertWithMatcher:grey_notNil()]; | 656 assertWithMatcher:grey_notNil()]; |
| 657 [[EarlGrey selectElementWithMatcher:OmniboxText(URL.GetContent())] | 657 [[EarlGrey selectElementWithMatcher:OmniboxText(URL.GetContent())] |
| 658 assertWithMatcher:grey_notNil()]; | 658 assertWithMatcher:grey_notNil()]; |
| 659 } | 659 } |
| 660 | 660 |
| 661 @end | 661 @end |
| OLD | NEW |