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

Unified Diff: chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc

Issue 2866853002: VR: Wire VrShell UI-related state to the scene manager. (Closed)
Patch Set: Rebase; remove now-unused source file. Created 3 years, 7 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: 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:
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.cc ('k') | chrome/browser/android/vr_shell/vr_browser_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698