mock_new_credit_card_bubble_controller.h revision ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16
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#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_ 7 8#include "base/basictypes.h" 9#include "base/memory/scoped_ptr.h" 10 11namespace autofill { 12 13class AutofillProfile; 14class CreditCard; 15 16class MockNewCreditCardBubbleController { 17 public: 18 MockNewCreditCardBubbleController(); 19 20 ~MockNewCreditCardBubbleController(); 21 22 void Show(scoped_ptr<CreditCard> new_card, 23 scoped_ptr<AutofillProfile> billing_profile); 24 25 const CreditCard* new_card() const { return new_card_.get(); } 26 27 const AutofillProfile* billing_profile() const { 28 return billing_profile_.get(); 29 } 30 31 int bubbles_shown() const { return bubbles_shown_; } 32 33 private: 34 scoped_ptr<CreditCard> new_card_; 35 scoped_ptr<AutofillProfile> billing_profile_; 36 37 int bubbles_shown_; 38 39 DISALLOW_COPY_AND_ASSIGN(MockNewCreditCardBubbleController); 40}; 41 42} // namespace autofill 43 44#endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_NEW_CREDIT_CARD_BUBBLE_CONTROLLER_H_ 45