#ifndef CHROME_BROWSER_UI_AUTOFILL_TEST_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_
#define CHROME_BROWSER_UI_AUTOFILL_TEST_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h"
namespace autofill {
class TestGeneratedCreditCardBubbleView;
class TestGeneratedCreditCardBubbleController
: public GeneratedCreditCardBubbleController {
public:
explicit TestGeneratedCreditCardBubbleController(
content::WebContents* contents);
virtual ~TestGeneratedCreditCardBubbleController();
bool IsInstalled() const;
TestGeneratedCreditCardBubbleView* GetTestingBubble();
using GeneratedCreditCardBubbleController::fronting_card_name;
using GeneratedCreditCardBubbleController::backing_card_name;
int bubbles_shown() const { return bubbles_shown_; }
protected:
virtual base::WeakPtr<GeneratedCreditCardBubbleView> CreateBubble() OVERRIDE;
virtual bool CanShow() const OVERRIDE;
virtual void SetupAndShow(const base::string16& fronting_card_name,
const base::string16& backing_card_name) OVERRIDE;
private:
int bubbles_shown_;
DISALLOW_COPY_AND_ASSIGN(TestGeneratedCreditCardBubbleController);
};
}
#endif