Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1274)

Unified Diff: components/autofill/core/browser/test_autofill_driver.h

Issue 17572015: Begin abstracting sending of IPC from autofill core code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698