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 "base/macros.h" |
8 #include "components/bubble/bubble_delegate.h" | 9 #include "components/bubble/bubble_delegate.h" |
9 #include "components/bubble/bubble_reference.h" | 10 #include "components/bubble/bubble_reference.h" |
10 #include "components/bubble/bubble_ui.h" | 11 #include "components/bubble/bubble_ui.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
12 | 13 |
13 class MockBubbleUi : public BubbleUi { | 14 class MockBubbleUi : public BubbleUi { |
14 public: | 15 public: |
15 MockBubbleUi(); | 16 MockBubbleUi(); |
16 ~MockBubbleUi() override; | 17 ~MockBubbleUi() override; |
17 | 18 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Will be null after |BubbleManager::ShowBubble| is called. | 54 // Will be null after |BubbleManager::ShowBubble| is called. |
54 MockBubbleUi* bubble_ui() { return bubble_ui_.get(); } | 55 MockBubbleUi* bubble_ui() { return bubble_ui_.get(); } |
55 | 56 |
56 private: | 57 private: |
57 scoped_ptr<MockBubbleUi> bubble_ui_; | 58 scoped_ptr<MockBubbleUi> bubble_ui_; |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(MockBubbleDelegate); | 60 DISALLOW_COPY_AND_ASSIGN(MockBubbleDelegate); |
60 }; | 61 }; |
61 | 62 |
62 #endif // COMPONENTS_BUBBLE_BUBBLE_MANAGER_MOCKS_H_ | 63 #endif // COMPONENTS_BUBBLE_BUBBLE_MANAGER_MOCKS_H_ |
OLD | NEW |