Index: components/infobars/test/test_confirm_infobar_delegate_factory.h |
diff --git a/components/infobars/test/test_confirm_infobar_delegate_factory.h b/components/infobars/test/test_confirm_infobar_delegate_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9a10427c60c88e0546631e2b5fa7b9e48af9222e |
--- /dev/null |
+++ b/components/infobars/test/test_confirm_infobar_delegate_factory.h |
@@ -0,0 +1,23 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_INFOBARS_TEST_TEST_CONFIRM_INFOBAR_DELEGATE_FACTORY_H_ |
+#define COMPONENTS_INFOBARS_TEST_TEST_CONFIRM_INFOBAR_DELEGATE_FACTORY_H_ |
+ |
+#include "components/infobars/core/confirm_infobar_delegate_factory.h" |
+ |
+// TestConfirmInfoBarDelegateFactory provides implementation |
+// of ConfirmInfoBarDelegate::CreateInfoBar() for tests. |
+class TestConfirmInfoBarDelegateFactory : public ConfirmInfoBarDelegateFactory { |
+ public: |
+ TestConfirmInfoBarDelegateFactory(); |
+ ~TestConfirmInfoBarDelegateFactory() override; |
+ |
+ private: |
+ // ConfirmInfoBarDelegateFactory: |
+ scoped_ptr<infobars::InfoBar> CreateInfoBar( |
+ scoped_ptr<ConfirmInfoBarDelegate> delegate) override; |
+}; |
+ |
+#endif // COMPONENTS_INFOBARS_TEST_TEST_CONFIRM_INFOBAR_DELEGATE_FACTORY_H_ |