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.
5 #include "chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h"
7 #include "base/logging.h"
8 #include "components/autofill/core/browser/autofill_profile.h"
9 #include "components/autofill/core/browser/credit_card.h"
13 MockNewCreditCardBubbleController::MockNewCreditCardBubbleController()
14 : bubbles_shown_(0) {}
16 MockNewCreditCardBubbleController::~MockNewCreditCardBubbleController() {}
18 void MockNewCreditCardBubbleController::Show(
19 scoped_ptr
<CreditCard
> new_card
,
20 scoped_ptr
<AutofillProfile
> billing_profile
) {
22 CHECK(billing_profile
);
24 new_card_
= new_card
.Pass();
25 billing_profile_
= billing_profile
.Pass();
30 } // namespace autofill