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

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

Issue 2929483003: VR: Further split common code from Android-specific code. (Closed)
Patch Set: Created 3 years, 6 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 0e1345feed931f2bd1e06f09a7a0feed91bf8d96..d17d0e8aa45e4e6e9999f3fbf1062db659578908 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc
@@ -5,11 +5,12 @@
#include "chrome/browser/android/vr_shell/ui_scene_manager.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/test/scoped_task_environment.h"
+#include "chrome/browser/android/vr_shell/ui_browser_interface.h"
#include "chrome/browser/android/vr_shell/ui_elements/ui_element.h"
#include "chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h"
#include "chrome/browser/android/vr_shell/ui_scene.h"
-#include "chrome/browser/android/vr_shell/vr_browser_interface.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -19,35 +20,16 @@ namespace vr_shell {
namespace {
-class MockBrowserInterface : public VrBrowserInterface {
+class MockBrowserInterface : public UiBrowserInterface {
public:
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_METHOD0(ExitPresent, void());
MOCK_METHOD0(ExitFullscreen, void());
- MOCK_METHOD2(
- RunVRDisplayInfoCallback,
- void(const base::Callback<void(device::mojom::VRDisplayInfoPtr)>&,
- device::mojom::VRDisplayInfoPtr*));
- MOCK_METHOD1(OnContentPaused, void(bool));
MOCK_METHOD0(NavigateBack, void());
- MOCK_METHOD1(SetVideoCapturingIndicator, void(bool));
- MOCK_METHOD1(SetScreenCapturingIndicator, void(bool));
- MOCK_METHOD1(SetAudioCapturingIndicator, void(bool));
MOCK_METHOD0(ExitCct, void());
- MOCK_METHOD1(ToggleCardboardGamepad, void(bool));
- MOCK_METHOD1(OnUnsupportedMode, void(UiUnsupportedMode));
-
- // Stub this as scoped pointers don't work as mock method parameters.
- void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent>) {}
+ MOCK_METHOD1(OnUnsupportedMode, void(UiUnsupportedMode mode));
private:
DISALLOW_COPY_AND_ASSIGN(MockBrowserInterface);
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.cc ('k') | chrome/browser/android/vr_shell/ui_scene_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698