aboutsummaryrefslogtreecommitdiff
path: root/apps/test/chqts/src/general_test/basic_sensor_test_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/test/chqts/src/general_test/basic_sensor_test_base.h')
-rw-r--r--apps/test/chqts/src/general_test/basic_sensor_test_base.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/apps/test/chqts/src/general_test/basic_sensor_test_base.h b/apps/test/chqts/src/general_test/basic_sensor_test_base.h
index afdb9a89..5e69aa77 100644
--- a/apps/test/chqts/src/general_test/basic_sensor_test_base.h
+++ b/apps/test/chqts/src/general_test/basic_sensor_test_base.h
@@ -19,8 +19,6 @@
#include <general_test/test.h>
-#include "chre/util/optional.h"
-
#include <chre.h>
namespace general_test {
@@ -44,11 +42,6 @@ class BasicSensorTestBase : public Test {
void setUp(uint32_t messageSize, const void *message) override;
/**
- * Sends a message to itself to trigger startTest();
- */
- void sendStartTestMessage();
-
- /**
* Abstract method indicating which sensor type this is.
*
* @returns One of the CHRE_SENSOR_TYPE_* constants.
@@ -109,12 +102,6 @@ class BasicSensorTestBase : public Test {
bool mSupportsPassiveMode = true;
- // The current sensor index that we are testing for.
- uint8_t mCurrentSensorIndex = 0;
-
- // The sensor handle for the previous sensor tested.
- chre::Optional<uint32_t> mPrevSensorHandle;
-
void startTest();
void finishTest();
void checkPassiveConfigure();
@@ -122,9 +109,9 @@ class BasicSensorTestBase : public Test {
const chreSensorThreeAxisData *eventData);
void handleSamplingChangeEvent(
const chreSensorSamplingStatusEvent *eventData);
- void handleSensorDataEvent(uint16_t eventType, const void *eventData);
- void verifyEventHeader(const chreSensorDataHeader *header, uint16_t eventType,
- uint64_t eventDuration);
+ void handleSensorDataEvent(const void *eventData);
+ void sanityCheckHeader(const chreSensorDataHeader *header,
+ bool modifyTimestamps, uint64_t eventDuration);
};
} // namespace general_test