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/strings/sys_string_conversions.h" | 7 #include "base/strings/sys_string_conversions.h" |
8 #include "components/strings/grit/components_strings.h" | 8 #include "components/strings/grit/components_strings.h" |
9 #include "ios/chrome/browser/ui/ui_util.h" | 9 #include "ios/chrome/browser/ui/ui_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_earl_grey_ui.h" | 11 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" |
12 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 12 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
13 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 13 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
14 #import "ios/web/public/test/http_server.h" | 14 #import "ios/web/public/test/http_server/http_server.h" |
15 #include "ios/web/public/test/http_server_util.h" | 15 #include "ios/web/public/test/http_server/http_server_util.h" |
16 | 16 |
17 #if !defined(__has_feature) || !__has_feature(objc_arc) | 17 #if !defined(__has_feature) || !__has_feature(objc_arc) |
18 #error "This file requires ARC support." | 18 #error "This file requires ARC support." |
19 #endif | 19 #endif |
20 | 20 |
21 using chrome_test_util::BackButton; | 21 using chrome_test_util::BackButton; |
22 using chrome_test_util::ForwardButton; | 22 using chrome_test_util::ForwardButton; |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 base::SysNSStringToUTF8(statusLabel))] | 343 base::SysNSStringToUTF8(statusLabel))] |
344 assertWithMatcher:grey_notNil()]; | 344 assertWithMatcher:grey_notNil()]; |
345 } | 345 } |
346 | 346 |
347 [[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText( | 347 [[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText( |
348 urlToVerify.GetContent())] | 348 urlToVerify.GetContent())] |
349 assertWithMatcher:grey_notNil()]; | 349 assertWithMatcher:grey_notNil()]; |
350 } | 350 } |
351 | 351 |
352 @end | 352 @end |
OLD | NEW |