| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_TEST_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_TEST_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_TEST_HELPER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_TEST_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/tab_contents/infobar_delegate.h" | 9 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| 10 | 10 #include "chrome/browser/tab_contents/link_infobar_delegate.h" |
| 11 | 11 |
| 12 // MockLinkInfoBarDelegate ---------------------------------------------------- | 12 // MockLinkInfoBarDelegate ---------------------------------------------------- |
| 13 | 13 |
| 14 class MockLinkInfoBarDelegate : public LinkInfoBarDelegate { | 14 class MockLinkInfoBarDelegate : public LinkInfoBarDelegate { |
| 15 public: | 15 public: |
| 16 MockLinkInfoBarDelegate(); | 16 MockLinkInfoBarDelegate(); |
| 17 virtual ~MockLinkInfoBarDelegate(); | 17 virtual ~MockLinkInfoBarDelegate(); |
| 18 | 18 |
| 19 void set_dont_close_on_action() { closes_on_action_ = false; } | 19 void set_dont_close_on_action() { closes_on_action_ = false; } |
| 20 | 20 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 mutable bool link_text_accessed_; | 86 mutable bool link_text_accessed_; |
| 87 bool ok_clicked_; | 87 bool ok_clicked_; |
| 88 bool cancel_clicked_; | 88 bool cancel_clicked_; |
| 89 bool link_clicked_; | 89 bool link_clicked_; |
| 90 bool closed_; | 90 bool closed_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(MockConfirmInfoBarDelegate); | 92 DISALLOW_COPY_AND_ASSIGN(MockConfirmInfoBarDelegate); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_TEST_HELPER_H_ | 95 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_TEST_HELPER_H_ |
| OLD | NEW |