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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc

Issue 229593002: rAc: don't DCHECK() when switching from Wallet -> Autofill with only 1 name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698