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

Unified Diff: device/vr/vr_service_impl_unittest.cc

Issue 2374153002: Expose secure origin state to WebVR renderer (Closed)
Patch Set: Add missing "RequestPresent" argument to unit test Created 4 years, 3 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
Index: device/vr/vr_service_impl_unittest.cc
diff --git a/device/vr/vr_service_impl_unittest.cc b/device/vr/vr_service_impl_unittest.cc
index 835a57dbb007f0a91764ff1452063f0045d028a4..95f445a1b3370caee321ab545796c2bcb163af73 100644
--- a/device/vr/vr_service_impl_unittest.cc
+++ b/device/vr/vr_service_impl_unittest.cc
@@ -158,14 +158,16 @@ TEST_F(VRServiceImplTest, DevicePresentationIsolation) {
// Begin presenting to the fake device with service 1
EXPECT_TRUE(
- device_manager_->RequestPresent(service_1->service(), device->id()));
+ device_manager_->RequestPresent(service_1->service(), device->id(),
+ true));
EXPECT_TRUE(presenting());
// Service 2 should not be able to present to the device while service 1
// is still presenting.
EXPECT_FALSE(
- device_manager_->RequestPresent(service_2->service(), device->id()));
+ device_manager_->RequestPresent(service_2->service(), device->id(),
+ true));
// Only the presenting service should be able to access the device
EXPECT_EQ(device.get(), VRDeviceManager::GetAllowedDevice(

Powered by Google App Engine
This is Rietveld 408576698