mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-08-27 20:49:55 -04:00
@@ -13,14 +13,12 @@
|
||||
#include <string>
|
||||
#include <unistd.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include "osal_test_case_def.h"
|
||||
#include "hdf_uhdf_test.h"
|
||||
#include "hdf_io_service_if.h"
|
||||
#include "hdf_uhdf_test.h"
|
||||
#include "osal_test_case_def.h"
|
||||
|
||||
using namespace testing::ext;
|
||||
|
||||
static const int OSAL_TEST_TIME = 30;
|
||||
static const int OSAL_WAIT_END_TIME = 5;
|
||||
static const char *OSAL_FW_PATH = "/lib/firmware";
|
||||
static const int OSAL_FW_PATH_MODE = 0x777;
|
||||
#define OSAL_TEST_FUNC_DEFINE(subCmd) do { \
|
||||
@@ -35,6 +33,9 @@ public:
|
||||
static void TearDownTestCase();
|
||||
void SetUp();
|
||||
void TearDown();
|
||||
private:
|
||||
static const int OSAL_TEST_TIME = 30;
|
||||
static const int OSAL_WAIT_END_TIME = 5;
|
||||
};
|
||||
|
||||
static void OsalCreateDir(bool flag)
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
#include <string>
|
||||
#include <unistd.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include "osal_test_case_def.h"
|
||||
#include "hdf_uhdf_test.h"
|
||||
#include "osal_get_case_test.h"
|
||||
#include "osal_test_case_def.h"
|
||||
|
||||
int32_t HdfOsalUserEntry(enum HdfOsalTestCaseCmd cmd)
|
||||
{
|
||||
@@ -41,9 +41,6 @@ int32_t HdfOsalUserEntry(enum HdfOsalTestCaseCmd cmd)
|
||||
|
||||
using namespace testing::ext;
|
||||
|
||||
static const int OSAL_TEST_TIME = 30;
|
||||
static const int OSAL_WAIT_END_TIME = 5;
|
||||
|
||||
#define OSAL_TEST_FUNC_DEFINE(subCmd) do { \
|
||||
printf("OSAL test enter cmd:%d\n\r", subCmd); \
|
||||
EXPECT_EQ(0, HdfOsalUserEntry(subCmd)); \
|
||||
@@ -55,6 +52,9 @@ public:
|
||||
static void TearDownTestCase();
|
||||
void SetUp();
|
||||
void TearDown();
|
||||
private:
|
||||
static const int OSAL_TEST_TIME = 30;
|
||||
static const int OSAL_WAIT_END_TIME = 5;
|
||||
};
|
||||
|
||||
void OsalTest::SetUpTestCase()
|
||||
|
||||
@@ -806,7 +806,7 @@ int OsaTestBegin(void)
|
||||
#ifndef __USER__
|
||||
ret = OsalTestFileInit();
|
||||
#else
|
||||
ret = 0;
|
||||
ret = 0;
|
||||
#endif
|
||||
OsalTestOther(ret);
|
||||
OsaTimeTest();
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
* See the LICENSE file in the root of this repository for complete details.
|
||||
*/
|
||||
|
||||
#include "hdf_log.h"
|
||||
#include "osal_case_cmd_test.h"
|
||||
|
||||
int OsalGetTestResult(uint32_t cmd)
|
||||
|
||||
Reference in New Issue
Block a user