| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_BUBBLE_BUBBLE_MANAGER_MOCKS_H_ | 5 #ifndef COMPONENTS_BUBBLE_BUBBLE_MANAGER_MOCKS_H_ |
| 6 #define COMPONENTS_BUBBLE_BUBBLE_MANAGER_MOCKS_H_ | 6 #define COMPONENTS_BUBBLE_BUBBLE_MANAGER_MOCKS_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 MOCK_METHOD1(UpdateBubbleUi, bool(BubbleUi*)); | 51 MOCK_METHOD1(UpdateBubbleUi, bool(BubbleUi*)); |
| 52 | 52 |
| 53 std::string GetName() const override { return "MockBubble"; } | 53 std::string GetName() const override { return "MockBubble"; } |
| 54 | 54 |
| 55 // To verify destructor call. | 55 // To verify destructor call. |
| 56 MOCK_METHOD0(Destroyed, void()); | 56 MOCK_METHOD0(Destroyed, void()); |
| 57 | 57 |
| 58 // Will be null after |BubbleManager::ShowBubble| is called. | 58 // Will be null after |BubbleManager::ShowBubble| is called. |
| 59 MockBubbleUi* bubble_ui() { return bubble_ui_.get(); } | 59 MockBubbleUi* bubble_ui() { return bubble_ui_.get(); } |
| 60 | 60 |
| 61 MOCK_CONST_METHOD0(OwningFrame, const content::RenderFrameHost*()); |
| 62 |
| 61 private: | 63 private: |
| 62 scoped_ptr<MockBubbleUi> bubble_ui_; | 64 scoped_ptr<MockBubbleUi> bubble_ui_; |
| 63 | 65 |
| 64 DISALLOW_COPY_AND_ASSIGN(MockBubbleDelegate); | 66 DISALLOW_COPY_AND_ASSIGN(MockBubbleDelegate); |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 #endif // COMPONENTS_BUBBLE_BUBBLE_MANAGER_MOCKS_H_ | 69 #endif // COMPONENTS_BUBBLE_BUBBLE_MANAGER_MOCKS_H_ |
| OLD | NEW |