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

Unified Diff: device/vr/vr_service_impl_unittest.cc

Issue 2374153002: Expose secure origin state to WebVR renderer (Closed)
Patch Set: Rebase, remove stray logging, set explicit default 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
« no previous file with comments | « device/vr/vr_service_impl.cc ('k') | third_party/WebKit/Source/modules/vr/VRController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..300bf0dbfb960c8fc738333a2253a3fca33e7504 100644
--- a/device/vr/vr_service_impl_unittest.cc
+++ b/device/vr/vr_service_impl_unittest.cc
@@ -157,15 +157,15 @@ TEST_F(VRServiceImplTest, DevicePresentationIsolation) {
service_2->service(), device->id()));
// Begin presenting to the fake device with service 1
- EXPECT_TRUE(
- device_manager_->RequestPresent(service_1->service(), device->id()));
+ EXPECT_TRUE(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()));
+ EXPECT_FALSE(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(
« no previous file with comments | « device/vr/vr_service_impl.cc ('k') | third_party/WebKit/Source/modules/vr/VRController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698