#include <cmath>
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/numerics/math_constants.h"
#include "base/test/task_environment.h"
#include "services/device/generic_sensor/fake_platform_sensor_fusion.h"
#include "services/device/generic_sensor/relative_orientation_euler_angles_fusion_algorithm_using_accelerometer.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace device {
namespace {
class RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest
: public testing::Test { … };
}
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
NoAccelerometerReading) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
NeutralOrientation) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
UpsideDown) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
BeforeUpsideDownBoundary) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
TopEdge) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
BeforeTopEdgeBoundary) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
BottomEdge) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
BeforeBottomEdgeBoundary) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
LeftEdge) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
BeforeLeftEdgeBoundary) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
RightEdge) { … }
TEST_F(RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometerTest,
BeforeRightEdgeBoundary) { … }
}