OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_INSTANT_INSTANT_TEST_UTILS_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_TEST_UTILS_H_ |
6 #define CHROME_BROWSER_INSTANT_INSTANT_TEST_UTILS_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_TEST_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 bool* result) WARN_UNUSED_RESULT; | 70 bool* result) WARN_UNUSED_RESULT; |
71 bool GetIntFromJS(content::WebContents* contents, | 71 bool GetIntFromJS(content::WebContents* contents, |
72 const std::string& script, | 72 const std::string& script, |
73 int* result) WARN_UNUSED_RESULT; | 73 int* result) WARN_UNUSED_RESULT; |
74 bool GetStringFromJS(content::WebContents* contents, | 74 bool GetStringFromJS(content::WebContents* contents, |
75 const std::string& script, | 75 const std::string& script, |
76 std::string* result) WARN_UNUSED_RESULT; | 76 std::string* result) WARN_UNUSED_RESULT; |
77 bool ExecuteScript(const std::string& script) WARN_UNUSED_RESULT; | 77 bool ExecuteScript(const std::string& script) WARN_UNUSED_RESULT; |
78 bool CheckVisibilityIs(content::WebContents* contents, | 78 bool CheckVisibilityIs(content::WebContents* contents, |
79 bool expected) WARN_UNUSED_RESULT; | 79 bool expected) WARN_UNUSED_RESULT; |
| 80 bool HasUserInputInProgress(); |
| 81 bool HasTemporaryText(); |
80 | 82 |
81 GURL instant_url_; | 83 GURL instant_url_; |
82 | 84 |
83 // HTTPS Testing server, started on demand. | 85 // HTTPS Testing server, started on demand. |
84 net::TestServer https_test_server_; | 86 net::TestServer https_test_server_; |
85 }; | 87 }; |
86 | 88 |
87 #endif // CHROME_BROWSER_INSTANT_INSTANT_TEST_UTILS_H_ | 89 #endif // CHROME_BROWSER_INSTANT_INSTANT_TEST_UTILS_H_ |
OLD | NEW |