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 #ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
13 class AutofillProfile
;
16 class MockNewCreditCardBubbleController
{
18 MockNewCreditCardBubbleController();
20 ~MockNewCreditCardBubbleController();
22 void Show(scoped_ptr
<CreditCard
> new_card
,
23 scoped_ptr
<AutofillProfile
> billing_profile
);
25 const CreditCard
* new_card() const { return new_card_
.get(); }
27 const AutofillProfile
* billing_profile() const {
28 return billing_profile_
.get();
31 int bubbles_shown() const { return bubbles_shown_
; }
34 scoped_ptr
<CreditCard
> new_card_
;
35 scoped_ptr
<AutofillProfile
> billing_profile_
;
39 DISALLOW_COPY_AND_ASSIGN(MockNewCreditCardBubbleController
);
42 } // namespace autofill
44 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_