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.
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_MOCK_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_MOCK_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_
8 #include "chrome/browser/ui/toolbar/component_toolbar_actions_factory.h"
9 #include "chrome/browser/ui/toolbar/toolbar_actions_model.h"
13 // Mock class used to substitute ComponentToolbarActionsFactory in tests.
14 class MockComponentToolbarActionsFactory
15 : public ComponentToolbarActionsFactory
{
17 explicit MockComponentToolbarActionsFactory(Browser
* browser
);
18 ~MockComponentToolbarActionsFactory() override
;
20 // ComponentToolbarActionsFactory:
21 ScopedVector
<ToolbarActionViewController
> GetComponentToolbarActions(
22 Browser
* browser
) override
;
24 const std::vector
<std::string
>& action_ids() const { return action_ids_
; }
27 std::vector
<std::string
> action_ids_
;
29 DISALLOW_COPY_AND_ASSIGN(MockComponentToolbarActionsFactory
);
32 #endif // CHROME_BROWSER_UI_TOOLBAR_MOCK_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_