embedded-framework/test/application/MissionManager/tool/src/SdCardHandleStateMock.h
2024-05-07 15:53:27 +08:00

36 lines
1.2 KiB
C++

/*
* Copyright (c) 2023 Fancy Code.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef SD_CARD_HANDLE_STATE_MOCK_H
#define SD_CARD_HANDLE_STATE_MOCK_H
#include "MediaMonitorMock.h"
#include "MissionManagerTestTool.h"
#include "SdCardHandleState.h"
#include "StorageBase.h"
class SdCardHandleStateTest : public SdCardHandleState, virtual public MediaMonitorTrace, public StorageBase
{
public:
SdCardHandleStateTest();
virtual ~SdCardHandleStateTest() = default;
private:
bool SdCardEventHandle(VStateMachineData *msg);
};
class SdCardHandleStateMock : public MediaMonitorMock, public SdCardHandleStateTest
{
public:
SdCardHandleStateMock() = default;
virtual ~SdCardHandleStateMock() = default;
};
#endif