OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_MOCK_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_ | |
6 #define CHROME_BROWSER_UI_TOOLBAR_MOCK_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_ | |
7 | |
8 #include "chrome/browser/ui/toolbar/component_toolbar_actions_factory.h" | |
9 #include "chrome/browser/ui/toolbar/toolbar_actions_model.h" | |
10 | |
11 class Browser; | |
12 | |
13 // Mock class used to substitute ComponentToolbarActionsFactory in tests. | |
14 class MockComponentToolbarActionsFactory | |
15 : public ComponentToolbarActionsFactory { | |
16 public: | |
17 explicit MockComponentToolbarActionsFactory(Browser* browser); | |
18 ~MockComponentToolbarActionsFactory() override; | |
19 | |
20 // ComponentToolbarActionsFactory: | |
21 ScopedVector<ToolbarActionViewController> | |
22 GetComponentToolbarActions(Browser* browser) override; | |
23 | |
24 const ActionIds action_ids() const { return action_ids_; } | |
Devlin
2015/08/13 21:21:10
why not const&?
apacible
2015/08/15 08:46:41
Done.
| |
25 | |
26 private: | |
27 ActionIds action_ids_; | |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(MockComponentToolbarActionsFactory); | |
30 }; | |
31 | |
32 #endif // CHROME_BROWSER_UI_TOOLBAR_MOCK_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_ | |
OLD | NEW |