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..b2362d93c27fc5064331cc867452ba700819e343 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,10 @@ class TestAutofillDriver : public AutofillDriver, |
// AutofillDriver implementation. |
virtual content::WebContents* GetWebContents() OVERRIDE; |
+ virtual bool CanSendToRenderer() OVERRIDE; |
+ |
+ // Mock methods to enable testability. |
+ MOCK_METHOD2(SendFormDataToRenderer, void(int query_id, FormData data)); |
private: |
DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); |