b4a2edec6a
* Final update copyright headers to reference license files at the repo root Signed-off-by: spham <spham@amazon.com> * Fix copyright validator unit tests to support the stale O3DE header scenario Signed-off-by: spham <spham@amazon.com>
28 lines
1.2 KiB
C++
28 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
namespace MCore
|
|
{
|
|
class CommandManagerCallbackMock
|
|
: public MCore::CommandManagerCallback
|
|
{
|
|
public:
|
|
MOCK_METHOD3(OnPreExecuteCommand, void(MCore::CommandGroup*, MCore::Command*, const MCore::CommandLine&));
|
|
MOCK_METHOD5(OnPostExecuteCommand, void(MCore::CommandGroup*, MCore::Command*, const MCore::CommandLine&, bool, const AZStd::string&));
|
|
|
|
MOCK_METHOD2(OnPreUndoCommand, void(MCore::Command*, const MCore::CommandLine&));
|
|
MOCK_METHOD2(OnPostUndoCommand, void(MCore::Command*, const MCore::CommandLine&));
|
|
|
|
MOCK_METHOD2(OnPreExecuteCommandGroup, void(MCore::CommandGroup*, bool));
|
|
MOCK_METHOD2(OnPostExecuteCommandGroup, void(MCore::CommandGroup*, bool));
|
|
|
|
MOCK_METHOD4(OnAddCommandToHistory, void(uint32, MCore::CommandGroup*, MCore::Command*, const MCore::CommandLine&));
|
|
MOCK_METHOD1(OnRemoveCommand, void(uint32));
|
|
MOCK_METHOD1(OnSetCurrentCommand, void(uint32));
|
|
};
|
|
} // namespace MCore
|