Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Unified Diff: device/vr/vr_display_impl_unittest.cc

Issue 2746233002: Fixes 2D-to-WebVR site transitions when browsing in VR. (Closed)
Patch Set: Fixed export Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/vr/vr_display_impl.cc ('k') | device/vr/vr_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_display_impl_unittest.cc
diff --git a/device/vr/vr_display_impl_unittest.cc b/device/vr/vr_display_impl_unittest.cc
index 05cad2f2d9709851a7f7ac276d03e358e960e8ba..80dc7c48410abd9d7828aec19a7b5240315f6214 100644
--- a/device/vr/vr_display_impl_unittest.cc
+++ b/device/vr/vr_display_impl_unittest.cc
@@ -65,6 +65,10 @@ class VRDisplayImplTest : public testing::Test {
bool presenting() { return !!device_->presenting_display_; }
+ VRDisplayImpl* GetVRDisplayImpl(VRServiceImpl* service, VRDevice* device) {
+ return service->GetVRDisplayImplForTesting(device);
+ }
+
base::MessageLoop message_loop_;
bool is_request_presenting_success_ = false;
FakeVRDeviceProvider* provider_;
@@ -79,8 +83,8 @@ TEST_F(VRDisplayImplTest, DevicePresentationIsolation) {
auto service_1 = BindService();
auto service_2 = BindService();
- VRDisplayImpl* display_1 = service_1->GetVRDisplayImpl(device());
- VRDisplayImpl* display_2 = service_2->GetVRDisplayImpl(device());
+ VRDisplayImpl* display_1 = GetVRDisplayImpl(service_1.get(), device());
+ VRDisplayImpl* display_2 = GetVRDisplayImpl(service_2.get(), device());
// When not presenting either service should be able to access the device.
EXPECT_TRUE(device()->IsAccessAllowed(display_1));
« no previous file with comments | « device/vr/vr_display_impl.cc ('k') | device/vr/vr_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698