#include "services/device/generic_sensor/gravity_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 GravityFusionAlgorithmUsingAccelerometerTest : public testing::Test { … };
}
TEST_F(GravityFusionAlgorithmUsingAccelerometerTest, NoAccelerometerReading) { … }
TEST_F(GravityFusionAlgorithmUsingAccelerometerTest,
NoFusedDataOnFirstReading) { … }
TEST_F(GravityFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingAllZero) { … }
TEST_F(GravityFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingNonZeroX) { … }
TEST_F(GravityFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingNonZeroY) { … }
TEST_F(GravityFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingNonZeroZ) { … }
TEST_F(GravityFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingSameNonZeroXYZ) { … }
TEST_F(GravityFusionAlgorithmUsingAccelerometerTest,
AccelerometerReadingDifferentNonZeroXYZ) { … }
TEST_F(GravityFusionAlgorithmUsingAccelerometerTest,
StopSensorShouldClearAllInternalStatisticalData) { … }
}