Imporve:include cleaner.
This commit is contained in:
parent
a17cc5e307
commit
9c851492d3
|
@ -13,8 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "CameraHalMock.h"
|
#include "CameraHalMock.h"
|
||||||
#include "HalCppMock.h"
|
#include "IHalCpp.h"
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
|
#include "StatusCode.h"
|
||||||
|
#include <memory>
|
||||||
CameraHalTest::CameraHalTest(const CameraType &cameraType) : mCameraType(cameraType)
|
CameraHalTest::CameraHalTest(const CameraType &cameraType) : mCameraType(cameraType)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,13 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "HalCppMock.h"
|
#include "HalCppMock.h"
|
||||||
|
#include "HalCpp.h"
|
||||||
|
#include "IHalCpp.h"
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
|
#include "StatusCode.h"
|
||||||
|
#include <map>
|
||||||
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
StatusCode HalCppTest::GetAllLeds(std::map<std::string, std::shared_ptr<VLedHal>> &allLeds)
|
StatusCode HalCppTest::GetAllLeds(std::map<std::string, std::shared_ptr<VLedHal>> &allLeds)
|
||||||
{
|
{
|
||||||
LogInfo("HalCppTest::GetAllLeds\n");
|
LogInfo("HalCppTest::GetAllLeds\n");
|
||||||
|
|
|
@ -13,7 +13,15 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "HalMakePtrTest.h"
|
#include "HalMakePtrTest.h"
|
||||||
|
#include "HalCppMock.h"
|
||||||
|
#include "HalMakePtr.h"
|
||||||
|
#include "IHalCpp.h"
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
|
#include "KeyControl.h"
|
||||||
|
#include "SdCardHalMock.h"
|
||||||
|
#include "StatusCode.h"
|
||||||
|
#include <memory>
|
||||||
|
#include <vector>
|
||||||
void OverrideHalMakePtrObject(std::shared_ptr<HalCppMock> &halMock, std::shared_ptr<SdCardHalMock> &sdCardHalMock)
|
void OverrideHalMakePtrObject(std::shared_ptr<HalCppMock> &halMock, std::shared_ptr<SdCardHalMock> &sdCardHalMock)
|
||||||
{
|
{
|
||||||
std::shared_ptr<HalMakePtr> impl = std::make_shared<HalMakePtrTest>();
|
std::shared_ptr<HalMakePtr> impl = std::make_shared<HalMakePtrTest>();
|
||||||
|
|
|
@ -14,15 +14,25 @@
|
||||||
*/
|
*/
|
||||||
#include "HalTestTool.h"
|
#include "HalTestTool.h"
|
||||||
#include "CameraHalMock.h"
|
#include "CameraHalMock.h"
|
||||||
|
#include "GtestUsing.h"
|
||||||
#include "HalCppMock.h"
|
#include "HalCppMock.h"
|
||||||
|
#include "HalMakePtr.h"
|
||||||
#include "HalMakePtrTest.h"
|
#include "HalMakePtrTest.h"
|
||||||
|
#include "IHalCpp.h"
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
#include "KeyControl.h"
|
#include "KeyControl.h"
|
||||||
#include "KeyControlMock.h"
|
#include "KeyControlMock.h"
|
||||||
|
#include "LedControl.h"
|
||||||
#include "LedControlMock.h"
|
#include "LedControlMock.h"
|
||||||
|
#include "LinuxApiMock.h"
|
||||||
#include "SdCardHalMock.h"
|
#include "SdCardHalMock.h"
|
||||||
|
#include "StatusCode.h"
|
||||||
#include "WifiHalMock.h"
|
#include "WifiHalMock.h"
|
||||||
#include <thread>
|
#include <gmock/gmock-spec-builders.h>
|
||||||
|
#include <map>
|
||||||
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
void HalTestTool::Init(void)
|
void HalTestTool::Init(void)
|
||||||
{
|
{
|
||||||
mHalMock = std::make_shared<HalCppMock>();
|
mHalMock = std::make_shared<HalCppMock>();
|
||||||
|
|
|
@ -13,7 +13,16 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "KeyControlMock.h"
|
#include "KeyControlMock.h"
|
||||||
|
#include "GtestUsing.h"
|
||||||
|
#include "IHalCpp.h"
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
|
#include "KeyControl.h"
|
||||||
|
#include "StatusCode.h"
|
||||||
|
#include <chrono>
|
||||||
|
#include <gmock/gmock-spec-builders.h>
|
||||||
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
|
#include <thread>
|
||||||
unsigned int KeyControlTest::GetStatusCheckPeriodMs(void)
|
unsigned int KeyControlTest::GetStatusCheckPeriodMs(void)
|
||||||
{
|
{
|
||||||
return PERIPHERAL_CHECK_PERIOD_MS;
|
return PERIPHERAL_CHECK_PERIOD_MS;
|
||||||
|
|
|
@ -13,7 +13,14 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "LedControlMock.h"
|
#include "LedControlMock.h"
|
||||||
|
#include "GtestUsing.h"
|
||||||
|
#include "IHalCpp.h"
|
||||||
#include "ILog.h"
|
#include "ILog.h"
|
||||||
|
#include "LedControl.h"
|
||||||
|
#include "StatusCode.h"
|
||||||
|
#include <gmock/gmock-spec-builders.h>
|
||||||
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
LedControlTest::LedControlTest(const std::string &ledName) : mLedName(ledName)
|
LedControlTest::LedControlTest(const std::string &ledName) : mLedName(ledName)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,13 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "SdCardHalMock.h"
|
#include "SdCardHalMock.h"
|
||||||
#include "ILog.h"
|
#include "GtestUsing.h"
|
||||||
|
// #include "ILog.h"
|
||||||
|
#include "LinuxApiMock.h"
|
||||||
|
#include <gmock/gmock-spec-builders.h>
|
||||||
|
#include <memory>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <unistd.h>
|
||||||
extern const char *SD_CARD_DEVICE;
|
extern const char *SD_CARD_DEVICE;
|
||||||
constexpr int FSTAT_SUCCESS = 0;
|
constexpr int FSTAT_SUCCESS = 0;
|
||||||
constexpr int FILE_EXIST = 0;
|
constexpr int FILE_EXIST = 0;
|
||||||
|
|
|
@ -12,5 +12,5 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "HalCppMock.h"
|
// #include "HalCppMock.h"
|
||||||
#include "ILog.h"
|
// #include "ILog.h"
|
Loading…
Reference in New Issue
Block a user