Index: device/vr/test/fake_vr_device.cc |
diff --git a/content/browser/vr/test/fake_vr_device.cc b/device/vr/test/fake_vr_device.cc |
similarity index 58% |
rename from content/browser/vr/test/fake_vr_device.cc |
rename to device/vr/test/fake_vr_device.cc |
index 50bcd32e334d008ab9f35df9799c326451c1cb1c..41ddec4c51a6c868d5d4b48f019f06fc1ee390de 100644 |
--- a/content/browser/vr/test/fake_vr_device.cc |
+++ b/device/vr/test/fake_vr_device.cc |
@@ -2,32 +2,33 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "content/browser/vr/test/fake_vr_device.h" |
+#include "device/vr/test/fake_vr_device.h" |
-namespace content { |
+namespace device { |
FakeVRDevice::FakeVRDevice(VRDeviceProvider* provider) : VRDevice(provider) { |
device_ = blink::mojom::VRDisplay::New(); |
- state_ = blink::mojom::VRPose::New(); |
+ pose_ = blink::mojom::VRPose::New(); |
} |
-FakeVRDevice::~FakeVRDevice() { |
-} |
+FakeVRDevice::~FakeVRDevice() {} |
void FakeVRDevice::SetVRDevice(const blink::mojom::VRDisplayPtr& device) { |
device_ = device.Clone(); |
} |
-void FakeVRDevice::SetSensorState(const blink::mojom::VRPosePtr& state) { |
- state_ = state.Clone(); |
+void FakeVRDevice::SetPose(const blink::mojom::VRPosePtr& pose) { |
+ pose_ = pose.Clone(); |
} |
blink::mojom::VRDisplayPtr FakeVRDevice::GetVRDevice() { |
return device_.Clone(); |
} |
-blink::mojom::VRPosePtr FakeVRDevice::GetSensorState() { |
- return state_.Clone(); |
+blink::mojom::VRPosePtr FakeVRDevice::GetPose() { |
+ return pose_.Clone(); |
} |
-} // namespace content |
+void FakeVRDevice::ResetPose() {} |
+ |
+} // namespace device |