Command.h 693 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. namespace MCore
  9. {
  10. class CommandCallbackMock
  11. : public MCore::Command::Callback
  12. {
  13. public:
  14. CommandCallbackMock(bool executePreUndo, bool executePreCommand = false)
  15. : MCore::Command::Callback(executePreUndo, executePreCommand)
  16. {
  17. }
  18. MOCK_METHOD2(Execute, bool(MCore::Command*, const MCore::CommandLine&));
  19. MOCK_METHOD2(Undo, bool(MCore::Command*, const MCore::CommandLine&));
  20. };
  21. } // namespace MCore