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

Unified Diff: device/vr/vr_service_impl_unittest.cc

Issue 2471433002: Implement WebVR presentation pausing for VR Shell Menu Mode (Closed)
Patch Set: rebase Created 4 years, 1 month 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.mojom ('k') | third_party/WebKit/Source/core/events/EventTypeNames.in » ('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 f0b8ce276d60365dc478b19496d4744c5d9a72f4..96b7e81dab21dd2fbe07fc656a448e0e6229b07d 100644
--- a/device/vr/vr_service_impl_unittest.cc
+++ b/device/vr/vr_service_impl_unittest.cc
@@ -4,6 +4,7 @@
#include "device/vr/vr_service_impl.h"
+#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "device/vr/test/fake_vr_device.h"
@@ -69,9 +70,8 @@ class VRServiceImplTest : public testing::Test {
protected:
void SetUp() override {
- std::unique_ptr<FakeVRDeviceProvider> provider(new FakeVRDeviceProvider());
- provider_ = provider.get();
- device_manager_.reset(new VRDeviceManager(std::move(provider)));
+ provider_ = new FakeVRDeviceProvider();
+ device_manager_.reset(new VRDeviceManager(base::WrapUnique(provider_)));
}
void TearDown() override { base::RunLoop().RunUntilIdle(); }
@@ -85,7 +85,7 @@ class VRServiceImplTest : public testing::Test {
size_t ServiceCount() { return device_manager_->services_.size(); }
base::MessageLoop message_loop_;
- FakeVRDeviceProvider* provider_;
+ FakeVRDeviceProvider* provider_ = nullptr;
std::unique_ptr<VRDeviceManager> device_manager_;
DISALLOW_COPY_AND_ASSIGN(VRServiceImplTest);
« no previous file with comments | « device/vr/vr_service.mojom ('k') | third_party/WebKit/Source/core/events/EventTypeNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698