#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <cstdint>
#include <memory>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "base/memory/shared_memory_mapping.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/test/test_simple_task_runner.h"
#include "device/vr/orientation/orientation_device.h"
#include "device/vr/orientation/orientation_session.h"
#include "device/vr/test/fake_orientation_provider.h"
#include "device/vr/test/fake_sensor_provider.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/device/public/cpp/generic_sensor/sensor_reading.h"
#include "services/device/public/cpp/generic_sensor/sensor_reading_shared_buffer.h"
#include "services/device/public/cpp/generic_sensor/sensor_reading_shared_buffer_reader.h"
#include "services/device/public/cpp/generic_sensor/sensor_traits.h"
#include "services/device/public/mojom/sensor.mojom.h"
#include "services/device/public/mojom/sensor_provider.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
#include "ui/gfx/geometry/quaternion.h"
namespace device {
namespace {
class FakeScreen : public display::Screen { … };
}
class VROrientationDeviceTest : public testing::Test { … };
TEST_F(VROrientationDeviceTest, InitializationTest) { … }
TEST_F(VROrientationDeviceTest, SensorNotAvailableTest) { … }
TEST_F(VROrientationDeviceTest, SensorIsAvailableTest) { … }
TEST_F(VROrientationDeviceTest, GetOrientationTest) { … }
TEST_F(VROrientationDeviceTest, OrientationDefaultForwardTest) { … }
TEST_F(VROrientationDeviceTest, OrientationSetForwardTest) { … }
TEST_F(VROrientationDeviceTest, OrientationLandscape90Test) { … }
TEST_F(VROrientationDeviceTest, OrientationLandscape270Test) { … }
TEST_F(VROrientationDeviceTest, GetFrameDataHelper) { … }
}