| 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 #ifndef IOS_WEB_PUBLIC_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_ |
| 6 #define IOS_WEB_PUBLIC_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_ | 6 #define IOS_WEB_PUBLIC_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/ios/block_types.h" | 12 #import "base/ios/block_types.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 | 14 |
| 15 #import "ios/web/public/web_state/web_state.h" | 15 #import "ios/web/public/web_state/web_state.h" |
| 16 | 16 |
| 17 namespace web { | 17 namespace web { |
| 18 namespace test { | 18 namespace test { |
| 19 | 19 |
| 20 // Synchronously returns the result of executed JavaScript, returning nullptr | 20 // Synchronously returns the result of executed JavaScript, returning nullptr |
| 21 // if the JavaScript does not complete. | 21 // if the JavaScript does not complete. |
| 22 std::unique_ptr<base::Value> ExecuteJavaScript(web::WebState* web_state, | 22 std::unique_ptr<base::Value> ExecuteJavaScript(web::WebState* web_state, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 41 const std::string& element_id); | 41 const std::string& element_id); |
| 42 | 42 |
| 43 // Returns whether the form with |form_id| in the passed |web_state| has been | 43 // Returns whether the form with |form_id| in the passed |web_state| has been |
| 44 // submitted using a JavaScript submit() event. | 44 // submitted using a JavaScript submit() event. |
| 45 bool SubmitWebViewFormWithId(web::WebState* web_state, | 45 bool SubmitWebViewFormWithId(web::WebState* web_state, |
| 46 const std::string& form_id); | 46 const std::string& form_id); |
| 47 } // namespace test | 47 } // namespace test |
| 48 } // namespace web | 48 } // namespace web |
| 49 | 49 |
| 50 #endif // IOS_WEB_PUBLIC_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_ | 50 #endif // IOS_WEB_PUBLIC_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_ |
| OLD | NEW |