#include "services/device/generic_sensor/linear_acceleration_fusion_algorithm_using_accelerometer.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/test/task_environment.h"
#include "services/device/generic_sensor/fake_platform_sensor_fusion.h"
#include "services/device/generic_sensor/generic_sensor_consts.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace device {
namespace {
class LinearAccelerationFusionAlgorithmUsingAccelerometerTest
: public testing::Test { … };
}
TEST_F(LinearAccelerationFusionAlgorithmUsingAccelerometerTest,
NoAccelerometerReading) { … }
TEST_F(LinearAccelerationFusionAlgorithmUsingAccelerometerTest,
NoFusedDataOnFirstReading) { … }
TEST_F(LinearAccelerationFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingAllZero) { … }
TEST_F(LinearAccelerationFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingNonZeroX) { … }
TEST_F(LinearAccelerationFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingNonZeroY) { … }
TEST_F(LinearAccelerationFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingNonZeroZ) { … }
TEST_F(LinearAccelerationFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingSameNonZeroXYZ) { … }
TEST_F(LinearAccelerationFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingDifferentNonZeroXYZ) { … }
TEST_F(LinearAccelerationFusionAlgorithmUsingAccelerometerTest,
StopSensorShouldClearAllInternalStatisticalData) { … }
}