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

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

Issue 13607006: rAc: don't clobber user input when accepting autofill popup suggestion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 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
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 "base/guid.h" 5 #include "base/guid.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" 10 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h"
(...skipping 29 matching lines...) Expand all
40 class TestAutofillDialogView : public AutofillDialogView { 40 class TestAutofillDialogView : public AutofillDialogView {
41 public: 41 public:
42 TestAutofillDialogView() {} 42 TestAutofillDialogView() {}
43 virtual ~TestAutofillDialogView() {} 43 virtual ~TestAutofillDialogView() {}
44 44
45 virtual void Show() OVERRIDE {} 45 virtual void Show() OVERRIDE {}
46 virtual void Hide() OVERRIDE {} 46 virtual void Hide() OVERRIDE {}
47 virtual void UpdateNotificationArea() OVERRIDE {} 47 virtual void UpdateNotificationArea() OVERRIDE {}
48 virtual void UpdateAccountChooser() OVERRIDE {} 48 virtual void UpdateAccountChooser() OVERRIDE {}
49 virtual void UpdateButtonStrip() OVERRIDE {} 49 virtual void UpdateButtonStrip() OVERRIDE {}
50 virtual void UpdateSection(DialogSection section) OVERRIDE {} 50 virtual void UpdateSection(DialogSection section, UserInputAction action)
51 OVERRIDE {}
51 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) 52 virtual void GetUserInput(DialogSection section, DetailOutputMap* output)
52 OVERRIDE {} 53 OVERRIDE {}
53 virtual string16 GetCvc() OVERRIDE { return string16(); } 54 virtual string16 GetCvc() OVERRIDE { return string16(); }
54 virtual bool UseBillingForShipping() OVERRIDE { return false; } 55 virtual bool UseBillingForShipping() OVERRIDE { return false; }
55 virtual bool SaveDetailsInWallet() OVERRIDE { return false; } 56 virtual bool SaveDetailsInWallet() OVERRIDE { return false; }
56 virtual bool SaveDetailsLocally() OVERRIDE { return false; } 57 virtual bool SaveDetailsLocally() OVERRIDE { return false; }
57 virtual const content::NavigationController* ShowSignIn() OVERRIDE { 58 virtual const content::NavigationController* ShowSignIn() OVERRIDE {
58 return NULL; 59 return NULL;
59 } 60 }
60 virtual void HideSignIn() OVERRIDE {} 61 virtual void HideSignIn() OVERRIDE {}
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 ASSERT_TRUE(account_menu); 613 ASSERT_TRUE(account_menu);
613 ASSERT_GE(2, account_menu->GetItemCount()); 614 ASSERT_GE(2, account_menu->GetItemCount());
614 account_menu->ActivatedAt(0); 615 account_menu->ActivatedAt(0);
615 account_menu->ActivatedAt(1); 616 account_menu->ActivatedAt(1);
616 617
617 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK)); 618 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK));
618 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); 619 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL));
619 } 620 }
620 621
621 } // namespace autofill 622 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_models.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698