Chromium Code Reviews| Index: chrome/browser/ui/search/instant_test_utils.h |
| diff --git a/chrome/browser/ui/search/instant_test_utils.h b/chrome/browser/ui/search/instant_test_utils.h |
| index e688e2234cbd4b7dbe83d8a8e71a355c801b916a..0d5f678b62c8e0a873122a37dab7fc666fb6b08b 100644 |
| --- a/chrome/browser/ui/search/instant_test_utils.h |
| +++ b/chrome/browser/ui/search/instant_test_utils.h |
| @@ -13,15 +13,12 @@ |
| #include "chrome/browser/ui/browser_window.h" |
| #include "chrome/browser/ui/location_bar/location_bar.h" |
| #include "chrome/browser/ui/search/instant_controller.h" |
| +#include "content/public/test/browser_test_utils.h" |
| #include "net/test/embedded_test_server/embedded_test_server.h" |
| #include "url/gurl.h" |
| class OmniboxView; |
| -namespace content { |
| -class WebContents; |
| -}; |
| - |
| // This utility class is meant to be used in a "mix-in" fashion, giving the |
| // derived test class additional Instant-related functionality. |
| class InstantTestBase { |
| @@ -55,16 +52,16 @@ class InstantTestBase { |
| void PressEnterAndWaitForNavigation(); |
| void PressEnterAndWaitForFrameLoad(); |
| - bool GetBoolFromJS(content::WebContents* contents, |
| + bool GetBoolFromJS(const content::ToRenderFrameHost& adapter, |
|
Marc Treib
2017/02/17 17:25:31
This is a Special Hack to that it's possible to pa
sfiera
2017/02/17 17:38:12
Nice implicit conversions.
|
| const std::string& script, |
| bool* result) WARN_UNUSED_RESULT; |
| - bool GetIntFromJS(content::WebContents* contents, |
| + bool GetIntFromJS(const content::ToRenderFrameHost& adapter, |
| const std::string& script, |
| int* result) WARN_UNUSED_RESULT; |
| - bool GetDoubleFromJS(content::WebContents* contents, |
| + bool GetDoubleFromJS(const content::ToRenderFrameHost& adapter, |
| const std::string& script, |
| double* result) WARN_UNUSED_RESULT; |
| - bool GetStringFromJS(content::WebContents* contents, |
| + bool GetStringFromJS(const content::ToRenderFrameHost& adapter, |
| const std::string& script, |
| std::string* result) WARN_UNUSED_RESULT; |