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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 17391012: Implement 'invalid' AutocompleteErrorEvent#reason (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: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
index 2748ec382cefbe4bf93f8dcfbe99b72b051db508..dabf0158e5da478c2d8f579579160baa32f7c945 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/callback.h"
+#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
@@ -287,6 +288,12 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
virtual void OnWalletSigninError();
private:
+ FRIEND_TEST_ALL_PREFIXES(AutofillDialogControllerTest, AutocompleteEvent);
+ FRIEND_TEST_ALL_PREFIXES(AutofillDialogControllerTest,
+ AutocompleteErrorEventReasonInvalid);
+ FRIEND_TEST_ALL_PREFIXES(AutofillDialogControllerTest,
+ AutocompleteErrorEventReasonCancel);
Ilya Sherman 2013/06/19 23:56:14 Why do we need to friend the tests? IMO it's much
Dan Beam 2013/06/20 00:26:57 AutofillDialogControllerImpl::view() (not TestAuto
Ilya Sherman 2013/06/20 01:11:27 I'd much rather expose a GetTestableView() method
Dan Beam 2013/06/20 01:47:09 Done.
+
// Whether or not the current request wants credit info back.
bool RequestingCreditCardInfo() const;

Powered by Google App Engine
This is Rietveld 408576698