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

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

Issue 13625002: Change the behavior of the [X] Save details to Wallet checkbox notification to: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) OVERRIDE {}
51 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) 51 virtual void GetUserInput(DialogSection section, DetailOutputMap* output)
52 OVERRIDE {} 52 OVERRIDE {}
53 virtual string16 GetCvc() OVERRIDE { return string16(); } 53 virtual string16 GetCvc() OVERRIDE { return string16(); }
54 virtual bool UseBillingForShipping() OVERRIDE { return false; } 54 virtual bool UseBillingForShipping() OVERRIDE { return false; }
55 virtual bool SaveDetailsInWallet() OVERRIDE { return false; }
56 virtual bool SaveDetailsLocally() OVERRIDE { return false; } 55 virtual bool SaveDetailsLocally() OVERRIDE { return false; }
57 virtual const content::NavigationController* ShowSignIn() OVERRIDE { 56 virtual const content::NavigationController* ShowSignIn() OVERRIDE {
58 return NULL; 57 return NULL;
59 } 58 }
60 virtual void HideSignIn() OVERRIDE {} 59 virtual void HideSignIn() OVERRIDE {}
61 virtual void UpdateProgressBar(double value) OVERRIDE {} 60 virtual void UpdateProgressBar(double value) OVERRIDE {}
62 virtual void SubmitForTesting() OVERRIDE {} 61 virtual void SubmitForTesting() OVERRIDE {}
63 virtual void CancelForTesting() OVERRIDE {} 62 virtual void CancelForTesting() OVERRIDE {}
64 63
65 MOCK_METHOD0(ModelChanged, void()); 64 MOCK_METHOD0(ModelChanged, void());
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 ASSERT_TRUE(account_menu); 611 ASSERT_TRUE(account_menu);
613 ASSERT_GE(2, account_menu->GetItemCount()); 612 ASSERT_GE(2, account_menu->GetItemCount());
614 account_menu->ActivatedAt(0); 613 account_menu->ActivatedAt(0);
615 account_menu->ActivatedAt(1); 614 account_menu->ActivatedAt(1);
616 615
617 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK)); 616 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK));
618 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); 617 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL));
619 } 618 }
620 619
621 } // namespace autofill 620 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698