From 987a6edfc6fb4ca863385b0e0b661f943fea1bc6 Mon Sep 17 00:00:00 2001 From: h00514358 Date: Thu, 18 Nov 2021 08:17:04 +0000 Subject: [PATCH 1/2] Signed-off-by:hellohyh001 Signed-off-by: h00514358 --- interfaces/native/include/sensor_agent_type.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/interfaces/native/include/sensor_agent_type.h b/interfaces/native/include/sensor_agent_type.h index ca2455e7..0273f31e 100755 --- a/interfaces/native/include/sensor_agent_type.h +++ b/interfaces/native/include/sensor_agent_type.h @@ -67,8 +67,6 @@ typedef enum SensorTypeId { SENSOR_TYPE_ID_NONE = 0, /**< None */ SENSOR_TYPE_ID_ACCELEROMETER = 1, /**< Acceleration sensor */ SENSOR_TYPE_ID_GYROSCOPE = 2, /**< Gyroscope sensor */ - SENSOR_TYPE_ID_PHOTOPLETHYSMOGRAPH = 3, /**< Photoplethysmography sensor */ - SENSOR_TYPE_ID_ELECTROCARDIOGRAPH = 4, /**< Electrocardiogram (ECG) sensor */ SENSOR_TYPE_ID_AMBIENT_LIGHT = 5, /**< Ambient light sensor */ SENSOR_TYPE_ID_MAGNETIC_FIELD = 6, /**< Magnetic field sensor */ SENSOR_TYPE_ID_CAPACITIVE = 7, /**< Capacitive sensor */ -- Gitee From 63f459619a970192e63f68ff8759ae7d2e4c7b48 Mon Sep 17 00:00:00 2001 From: h00514358 Date: Thu, 18 Nov 2021 12:34:27 +0000 Subject: [PATCH 2/2] Signed-off-by:hellohyh001 Signed-off-by: h00514358 --- interfaces/native/test/unittest/sensor_agent_test.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/interfaces/native/test/unittest/sensor_agent_test.cpp b/interfaces/native/test/unittest/sensor_agent_test.cpp index d29263e8..ad0ea070 100755 --- a/interfaces/native/test/unittest/sensor_agent_test.cpp +++ b/interfaces/native/test/unittest/sensor_agent_test.cpp @@ -61,10 +61,11 @@ void SensorDataCallbackImpl(SensorEvent *event) } /* - * @tc.name: SensorNativeApiTest_001 - * @tc.desc: sensor native api test - * @tc.type: FUNC - * @tc.author: wuzhihui + * Feature: sensor + * Function: SubscribeSensor + * FunctionPoints: Check the interface function + * EnvConditions: mobile that can run ohos test framework + * CaseDescription: Verify the senser service framework process. */ HWTEST_F(SensorAgentTest, SensorNativeApiTest_001, TestSize.Level1) { -- Gitee