| 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 "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/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 9 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
| 10 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 10 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual void Show() OVERRIDE {} | 40 virtual void Show() OVERRIDE {} |
| 41 virtual void Hide() OVERRIDE {} | 41 virtual void Hide() OVERRIDE {} |
| 42 virtual void UpdateNotificationArea() OVERRIDE {} | 42 virtual void UpdateNotificationArea() OVERRIDE {} |
| 43 virtual void UpdateAccountChooser() OVERRIDE {} | 43 virtual void UpdateAccountChooser() OVERRIDE {} |
| 44 virtual void UpdateButtonStrip() OVERRIDE {} | 44 virtual void UpdateButtonStrip() OVERRIDE {} |
| 45 virtual void UpdateSection(DialogSection section) OVERRIDE {} | 45 virtual void UpdateSection(DialogSection section) OVERRIDE {} |
| 46 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) | 46 virtual void GetUserInput(DialogSection section, DetailOutputMap* output) |
| 47 OVERRIDE {} | 47 OVERRIDE {} |
| 48 virtual string16 GetCvc() OVERRIDE { return string16(); } | 48 virtual string16 GetCvc() OVERRIDE { return string16(); } |
| 49 virtual bool UseBillingForShipping() OVERRIDE { return false; } | 49 virtual bool UseBillingForShipping() OVERRIDE { return false; } |
| 50 virtual bool SaveDetailsInWallet() OVERRIDE { return false; } | |
| 51 virtual bool SaveDetailsLocally() OVERRIDE { return false; } | 50 virtual bool SaveDetailsLocally() OVERRIDE { return false; } |
| 52 virtual const content::NavigationController* ShowSignIn() OVERRIDE { | 51 virtual const content::NavigationController* ShowSignIn() OVERRIDE { |
| 53 return NULL; | 52 return NULL; |
| 54 } | 53 } |
| 55 virtual void HideSignIn() OVERRIDE {} | 54 virtual void HideSignIn() OVERRIDE {} |
| 56 virtual void UpdateProgressBar(double value) OVERRIDE {} | 55 virtual void UpdateProgressBar(double value) OVERRIDE {} |
| 57 virtual void SubmitForTesting() OVERRIDE {} | 56 virtual void SubmitForTesting() OVERRIDE {} |
| 58 virtual void CancelForTesting() OVERRIDE {} | 57 virtual void CancelForTesting() OVERRIDE {} |
| 59 | 58 |
| 60 MOCK_METHOD0(ModelChanged, void()); | 59 MOCK_METHOD0(ModelChanged, void()); |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 EXPECT_EQ( | 502 EXPECT_EQ( |
| 504 0, controller()->MenuModelForSection(SECTION_CC_BILLING)->GetItemCount()); | 503 0, controller()->MenuModelForSection(SECTION_CC_BILLING)->GetItemCount()); |
| 505 | 504 |
| 506 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK)); | 505 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK)); |
| 507 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); | 506 EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); |
| 508 | 507 |
| 509 controller()->OnAccept(); | 508 controller()->OnAccept(); |
| 510 } | 509 } |
| 511 | 510 |
| 512 } // namespace autofill | 511 } // namespace autofill |
| OLD | NEW |