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 ---------------------------------------------------- |
Peter Kasting
2011/03/01 19:10:37
Nit: Probably want to split these into two files (
| |
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 |
21 bool icon_accessed() const { return icon_accessed_; } | 21 bool icon_accessed() const { return icon_accessed_; } |
22 bool message_text_accessed() const { return message_text_accessed_; } | 22 bool message_text_accessed() const { return message_text_accessed_; } |
(...skipping 63 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 |