Index: chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc |
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc |
index b5c4a9eee568e6d92b902b8b908e2a92a75b195b..94668a8b1b3a9f02d24b4d9e39e24f444087cfda 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc |
@@ -9,6 +9,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "base/time/time.h" |
#include "chrome/browser/autofill/personal_data_manager_factory.h" |
+#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
#include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
#include "chrome/browser/ui/autofill/data_model_wrapper.h" |
@@ -18,6 +19,7 @@ |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
#include "chrome/test/base/in_process_browser_test.h" |
#include "chrome/test/base/ui_test_utils.h" |
+#include "components/autofill/content/browser/wallet/test_wallet_client.h" |
#include "components/autofill/content/browser/wallet/wallet_test_util.h" |
#include "components/autofill/core/browser/autofill_common_test.h" |
#include "components/autofill/core/browser/autofill_metrics.h" |
@@ -99,6 +101,9 @@ class TestAutofillDialogController : public AutofillDialogControllerImpl { |
dialog_type, |
base::Bind(&MockCallback)), |
metric_logger_(metric_logger), |
+ test_wallet_client_( |
+ Profile::FromBrowserContext(contents->GetBrowserContext())-> |
+ GetRequestContext(), this), |
message_loop_runner_(runner), |
use_validation_(false) {} |
@@ -164,6 +169,10 @@ class TestAutofillDialogController : public AutofillDialogControllerImpl { |
return &test_manager_; |
} |
+ virtual wallet::WalletClient* GetWalletClient() OVERRIDE { |
+ return &test_wallet_client_; |
+ } |
+ |
private: |
// To specify our own metric logger. |
virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE { |
@@ -172,6 +181,7 @@ class TestAutofillDialogController : public AutofillDialogControllerImpl { |
const AutofillMetrics& metric_logger_; |
TestPersonalDataManager test_manager_; |
+ testing::NiceMock<wallet::TestWalletClient> test_wallet_client_; |
scoped_refptr<content::MessageLoopRunner> message_loop_runner_; |
bool use_validation_; |
@@ -472,8 +482,7 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, |
// Test that Autocheckout steps are shown after submitting the |
// dialog for controller with type DIALOG_TYPE_AUTOCHECKOUT. |
-IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, |
- DISABLED_AutocheckoutShowsSteps) { |
+IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, AutocheckoutShowsSteps) { |
InitializeControllerOfType(DIALOG_TYPE_AUTOCHECKOUT); |
controller()->AddAutocheckoutStep(AUTOCHECKOUT_STEP_PROXY_CARD); |
@@ -679,9 +688,9 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, ExpiredCard) { |
} |
// Notifications with long message text should not make the dialog bigger. |
-IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, |
- DISABLED_LongNotifications) { |
+IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, LongNotifications) { |
InitializeControllerOfType(DIALOG_TYPE_REQUEST_AUTOCOMPLETE); |
+ controller()->DisableWallet(wallet::WalletClient::UNKNOWN_ERROR); |
Ilya Sherman
2013/07/11 01:06:30
Why is this needed in just this one particular tes
Dan Beam
2013/07/11 01:29:36
there's 3 other cases in this file. in theory it
Dan Beam
2013/07/11 01:34:36
and... they're gone.
|
const gfx::Size no_notification_size = |
controller()->GetTestableView()->GetSize(); |