| Index: chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| index 06883504abf1db2ca75b0111d84d12a97086d808..b168837928bee11fc0391d7c7fbcda318dc47933 100644
|
| --- a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| +++ b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| @@ -64,7 +64,8 @@ class TestAutofillPopupController : public AutofillPopupControllerImpl {
|
| explicit TestAutofillPopupController(
|
| base::WeakPtr<AutofillExternalDelegate> external_delegate,
|
| const gfx::RectF& element_bounds)
|
| - : AutofillPopupControllerImpl(external_delegate, NULL, element_bounds) {}
|
| + : AutofillPopupControllerImpl(
|
| + external_delegate, NULL, element_bounds, false) {}
|
| virtual ~TestAutofillPopupController() {}
|
|
|
| void set_display(const gfx::Display display) {
|
| @@ -364,21 +365,22 @@ TEST_F(AutofillPopupControllerUnitTest, GetOrCreate) {
|
| WeakPtr<AutofillPopupControllerImpl> controller =
|
| AutofillPopupControllerImpl::GetOrCreate(
|
| WeakPtr<AutofillPopupControllerImpl>(), delegate.GetWeakPtr(), NULL,
|
| - gfx::Rect());
|
| + gfx::Rect(), false);
|
| EXPECT_TRUE(controller.get());
|
|
|
| controller->Hide();
|
|
|
| controller = AutofillPopupControllerImpl::GetOrCreate(
|
| WeakPtr<AutofillPopupControllerImpl>(), delegate.GetWeakPtr(), NULL,
|
| - gfx::Rect());
|
| + gfx::Rect(), false);
|
| EXPECT_TRUE(controller.get());
|
|
|
| WeakPtr<AutofillPopupControllerImpl> controller2 =
|
| AutofillPopupControllerImpl::GetOrCreate(controller,
|
| delegate.GetWeakPtr(),
|
| NULL,
|
| - gfx::Rect());
|
| + gfx::Rect(),
|
| + false);
|
| EXPECT_EQ(controller.get(), controller2.get());
|
| controller->Hide();
|
|
|
| @@ -393,7 +395,8 @@ TEST_F(AutofillPopupControllerUnitTest, GetOrCreate) {
|
| test_controller->GetWeakPtr(),
|
| delegate.GetWeakPtr(),
|
| NULL,
|
| - bounds);
|
| + bounds,
|
| + false);
|
| EXPECT_EQ(
|
| bounds,
|
| static_cast<AutofillPopupController*>(controller3.get())->
|
| @@ -416,7 +419,8 @@ TEST_F(AutofillPopupControllerUnitTest, ProperlyResetController) {
|
| popup_controller()->GetWeakPtr(),
|
| delegate()->GetWeakPtr(),
|
| NULL,
|
| - gfx::Rect());
|
| + gfx::Rect(),
|
| + false);
|
| EXPECT_NE(0, controller->selected_line());
|
| EXPECT_TRUE(controller->names().empty());
|
| }
|
|
|