OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "components/autofill/core/browser/autofill_profile.h" |
| 9 #include "components/autofill/core/browser/credit_card.h" |
| 10 |
| 11 namespace autofill { |
| 12 |
| 13 MockNewCreditCardBubbleController::MockNewCreditCardBubbleController() |
| 14 : bubbles_shown_(0) {} |
| 15 |
| 16 MockNewCreditCardBubbleController::~MockNewCreditCardBubbleController() {} |
| 17 |
| 18 void MockNewCreditCardBubbleController::Show( |
| 19 scoped_ptr<CreditCard> new_card, |
| 20 scoped_ptr<AutofillProfile> billing_profile) { |
| 21 CHECK(new_card); |
| 22 CHECK(billing_profile); |
| 23 |
| 24 new_card_ = new_card.Pass(); |
| 25 billing_profile_ = billing_profile.Pass(); |
| 26 |
| 27 ++bubbles_shown_; |
| 28 } |
| 29 |
| 30 } // namespace autofill |
OLD | NEW |