Index: components/autofill/core/browser/test_autofill_driver.h |
diff --git a/components/autofill/core/browser/test_autofill_driver.h b/components/autofill/core/browser/test_autofill_driver.h |
index b63b7a487fa5543361be2e374cd089c4313bf698..aed7458d7de4227f5ff95d22e9f72d9d4e082ae2 100644 |
--- a/components/autofill/core/browser/test_autofill_driver.h |
+++ b/components/autofill/core/browser/test_autofill_driver.h |
@@ -9,6 +9,7 @@ |
#include "base/compiler_specific.h" |
#include "components/autofill/core/browser/autofill_driver.h" |
#include "content/public/browser/web_contents_observer.h" |
+#include "testing/gmock/include/gmock/gmock.h" |
namespace autofill { |
@@ -24,6 +25,11 @@ class TestAutofillDriver : public AutofillDriver, |
// AutofillDriver implementation. |
virtual content::WebContents* GetWebContents() OVERRIDE; |
+ virtual bool RendererIsAvailable() OVERRIDE; |
+ |
+ // Mock methods to enable testability. |
+ MOCK_METHOD2(SendFormDataToRenderer, void(int query_id, |
+ const FormData& data)); |
Ilya Sherman
2013/06/26 22:54:58
Please stub out the method rather than mocking it
blundell
2013/06/27 21:58:27
Done.
|
private: |
DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); |