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

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: Response to review, add tests 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..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);

Powered by Google App Engine
This is Rietveld 408576698