update hdf/sensor/hdiService_additional/hdf_sensor_hdiService_test.cpp.

Signed-off-by: lixin475 <lixin475@huawei.com>
This commit is contained in:
lixin475 2024-07-09 08:25:16 +00:00 committed by Gitee
parent 211b643af1
commit d31c68c0f3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -105,7 +105,7 @@ HWTEST_F(HatsHdfSensorServiceTestAdditional, testHdiSensorSetBatch001, TestSize.
return;
}
int32_t ret = g_sensorInterface->GetAllSensorInfo(g_info);
int32_t ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback);
ret = g_sensorInterface->Register(TRADITIONAL_SENSOR_TYPE, g_traditionalCallback);
EXPECT_EQ(SENSOR_SUCCESS, ret);
int32_t status = IsSuppprtedSensorId(SENSOR_TYPE_ACCELEROMETER);
ret = g_sensorInterface->SetBatch(HDF_SENSOR_TYPE_ACCELEROMETER, SENSOR_INTERVAL2, SENSOR_POLL_TIME);