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 "ios/web/public/test/earl_grey/web_view_matchers.h" | 5 #import "ios/web/public/test/earl_grey/web_view_matchers.h" |
6 | 6 |
7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
8 #import <WebKit/WebKit.h> | 8 #import <WebKit/WebKit.h> |
9 | 9 |
10 #include "base/mac/bind_objc_block.h" | 10 #import "base/mac/bind_objc_block.h" |
11 #import "base/mac/scoped_nsobject.h" | 11 #import "base/mac/scoped_nsobject.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/test/ios/wait_util.h" | 15 #import "base/test/ios/wait_util.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "ios/testing/wait_util.h" | 17 #import "ios/testing/wait_util.h" |
18 #import "ios/web/interstitials/web_interstitial_impl.h" | 18 #import "ios/web/interstitials/web_interstitial_impl.h" |
19 #import "ios/web/public/test/earl_grey/js_test_util.h" | 19 #import "ios/web/public/test/earl_grey/js_test_util.h" |
20 #import "ios/web/public/test/web_view_interaction_test_util.h" | 20 #import "ios/web/public/test/web_view_interaction_test_util.h" |
21 #import "net/base/mac/url_conversions.h" | 21 #import "net/base/mac/url_conversions.h" |
22 | 22 |
23 using testing::kWaitForDownloadTimeout; | 23 using testing::kWaitForDownloadTimeout; |
24 using testing::WaitUntilConditionOrTimeout; | 24 using testing::WaitUntilConditionOrTimeout; |
25 | 25 |
26 // A helper delegate class that allows downloading responses with invalid | 26 // A helper delegate class that allows downloading responses with invalid |
27 // SSL certs. | 27 // SSL certs. |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 }; | 314 }; |
315 | 315 |
316 return grey_allOf(interstitial(web_state), | 316 return grey_allOf(interstitial(web_state), |
317 [[[GREYElementMatcherBlock alloc] | 317 [[[GREYElementMatcherBlock alloc] |
318 initWithMatchesBlock:matches | 318 initWithMatchesBlock:matches |
319 descriptionBlock:describe] autorelease], | 319 descriptionBlock:describe] autorelease], |
320 nil); | 320 nil); |
321 } | 321 } |
322 | 322 |
323 } // namespace web | 323 } // namespace web |
OLD | NEW |