| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <map> | 5 #include <map> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 3390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3401 controller()->UserEditedOrActivatedInput( | 3401 controller()->UserEditedOrActivatedInput( |
| 3402 SECTION_SHIPPING, | 3402 SECTION_SHIPPING, |
| 3403 NAME_FULL, | 3403 NAME_FULL, |
| 3404 gfx::NativeView(), | 3404 gfx::NativeView(), |
| 3405 gfx::Rect(), | 3405 gfx::Rect(), |
| 3406 profile.GetRawInfo(NAME_FULL).substr(0, 1), | 3406 profile.GetRawInfo(NAME_FULL).substr(0, 1), |
| 3407 true); | 3407 true); |
| 3408 EXPECT_EQ(NAME_FULL, controller()->popup_input_type()); | 3408 EXPECT_EQ(NAME_FULL, controller()->popup_input_type()); |
| 3409 } | 3409 } |
| 3410 | 3410 |
| 3411 TEST_F(AutofillDialogControllerTest, SwitchFromWalletWithFirstName) { |
| 3412 controller()->MenuModelForSection(SECTION_CC_BILLING)->ActivatedAt(2); |
| 3413 |
| 3414 FieldValueMap outputs; |
| 3415 outputs[NAME_FULL] = ASCIIToUTF16("madonna"); |
| 3416 controller()->GetView()->SetUserInput(SECTION_CC_BILLING, outputs); |
| 3417 |
| 3418 ASSERT_NO_FATAL_FAILURE(SwitchToAutofill()); |
| 3419 } |
| 3420 |
| 3411 } // namespace autofill | 3421 } // namespace autofill |
| OLD | NEW |