| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/web_state/js/crw_js_post_request_loader.h" | 5 #import "ios/web/web_state/js/crw_js_post_request_loader.h" |
| 6 | 6 |
| 7 #import <WebKit/WebKit.h> | 7 #import <WebKit/WebKit.h> |
| 8 | 8 |
| 9 #import "base/mac/foundation_util.h" | 9 #import "base/mac/foundation_util.h" |
| 10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| 11 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
| 12 #import "base/test/ios/wait_util.h" | 12 #import "base/test/ios/wait_util.h" |
| 13 #include "ios/web/public/test/web_test.h" |
| 13 #import "ios/web/public/web_view_creation_util.h" | 14 #import "ios/web/public/web_view_creation_util.h" |
| 14 #import "ios/web/test/web_test.h" | |
| 15 #import "ios/web/web_state/ui/crw_wk_script_message_router.h" | 15 #import "ios/web/web_state/ui/crw_wk_script_message_router.h" |
| 16 #import "testing/gtest_mac.h" | 16 #import "testing/gtest_mac.h" |
| 17 #import "third_party/ocmock/OCMock/OCMock.h" | 17 #import "third_party/ocmock/OCMock/OCMock.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 typedef web::WebTest CRWJSPOSTRequestLoaderTest; | 22 typedef web::WebTest CRWJSPOSTRequestLoaderTest; |
| 23 | 23 |
| 24 // This script takes a JavaScript blob and converts it to a base64-encoded | 24 // This script takes a JavaScript blob and converts it to a base64-encoded |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 return complete; | 99 return complete; |
| 100 }); | 100 }); |
| 101 | 101 |
| 102 // Clean up installed script handler. | 102 // Clean up installed script handler. |
| 103 [messageRouter removeScriptMessageHandlerForName:@"XHRSendHandler" | 103 [messageRouter removeScriptMessageHandlerForName:@"XHRSendHandler" |
| 104 webView:web_view]; | 104 webView:web_view]; |
| 105 } | 105 } |
| 106 | 106 |
| 107 } // namespace | 107 } // namespace |
| 108 } // namespace base | 108 } // namespace base |
| OLD | NEW |