| Index: chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc
|
| diff --git a/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc b/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc
|
| index 09d013586cd0e5fabfa60d1abc54cf15d587705e..b7b840f62fc7a3ec23cca1bd5751d0b6b8e3a7ec 100644
|
| --- a/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc
|
| +++ b/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc
|
| @@ -21,8 +21,22 @@ class MockBrowserInterface : public VrBrowserInterface {
|
| MockBrowserInterface() {}
|
| ~MockBrowserInterface() override {}
|
|
|
| + MOCK_METHOD1(ContentSurfaceChanged, void(jobject));
|
| + MOCK_METHOD0(GvrDelegateReady, void());
|
| + MOCK_METHOD1(UpdateGamepadData, void(device::GvrGamepadData));
|
| + MOCK_METHOD1(AppButtonGesturePerformed, void(UiInterface::Direction));
|
| +
|
| + MOCK_METHOD0(AppButtonClicked, void());
|
| + MOCK_METHOD0(ForceExitVr, void());
|
| + MOCK_METHOD2(
|
| + RunVRDisplayInfoCallback,
|
| + void(const base::Callback<void(device::mojom::VRDisplayInfoPtr)>&,
|
| + device::mojom::VRDisplayInfoPtr*));
|
| MOCK_METHOD1(OnContentPaused, void(bool));
|
|
|
| + // Stub this as scoped pointers don't work as mock method parameters.
|
| + void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent>) {}
|
| +
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(MockBrowserInterface);
|
| };
|
| @@ -37,8 +51,9 @@ class UiSceneManagerTest : public testing::Test {
|
| // TODO(mthiesse): When we have UI to test for CCT, we'll need to modify
|
| // setup to allow us to test CCT mode.
|
| bool in_cct = false;
|
| - manager_ =
|
| - base::MakeUnique<UiSceneManager>(browser_.get(), scene_.get(), in_cct);
|
| + bool in_web_vr = true;
|
| + manager_ = base::MakeUnique<UiSceneManager>(browser_.get(), scene_.get(),
|
| + in_cct, in_web_vr);
|
| }
|
|
|
| protected:
|
|
|