| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/android/vr_shell/ui_scene_manager.h" | 5 #include "chrome/browser/android/vr_shell/ui_scene_manager.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/test/scoped_task_environment.h" | 8 #include "base/test/scoped_task_environment.h" |
| 9 #include "chrome/browser/android/vr_shell/ui_elements/ui_element.h" | 9 #include "chrome/browser/android/vr_shell/ui_elements/ui_element.h" |
| 10 #include "chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h" | 10 #include "chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 MOCK_METHOD2( | 36 MOCK_METHOD2( |
| 37 RunVRDisplayInfoCallback, | 37 RunVRDisplayInfoCallback, |
| 38 void(const base::Callback<void(device::mojom::VRDisplayInfoPtr)>&, | 38 void(const base::Callback<void(device::mojom::VRDisplayInfoPtr)>&, |
| 39 device::mojom::VRDisplayInfoPtr*)); | 39 device::mojom::VRDisplayInfoPtr*)); |
| 40 MOCK_METHOD1(OnContentPaused, void(bool)); | 40 MOCK_METHOD1(OnContentPaused, void(bool)); |
| 41 MOCK_METHOD0(NavigateBack, void()); | 41 MOCK_METHOD0(NavigateBack, void()); |
| 42 MOCK_METHOD1(SetVideoCapturingIndicator, void(bool)); | 42 MOCK_METHOD1(SetVideoCapturingIndicator, void(bool)); |
| 43 MOCK_METHOD1(SetScreenCapturingIndicator, void(bool)); | 43 MOCK_METHOD1(SetScreenCapturingIndicator, void(bool)); |
| 44 MOCK_METHOD1(SetAudioCapturingIndicator, void(bool)); | 44 MOCK_METHOD1(SetAudioCapturingIndicator, void(bool)); |
| 45 MOCK_METHOD0(ExitCct, void()); | 45 MOCK_METHOD0(ExitCct, void()); |
| 46 MOCK_METHOD1(ToggleCardboardGamepad, void(bool)); |
| 46 | 47 |
| 47 // Stub this as scoped pointers don't work as mock method parameters. | 48 // Stub this as scoped pointers don't work as mock method parameters. |
| 48 void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent>) {} | 49 void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent>) {} |
| 49 | 50 |
| 50 private: | 51 private: |
| 51 DISALLOW_COPY_AND_ASSIGN(MockBrowserInterface); | 52 DISALLOW_COPY_AND_ASSIGN(MockBrowserInterface); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 } // namespace | 55 } // namespace |
| 55 | 56 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 MakeManager(kNotInCct, kNotInWebVr); | 133 MakeManager(kNotInCct, kNotInWebVr); |
| 133 EXPECT_FALSE(IsVisible(kCloseButton)); | 134 EXPECT_FALSE(IsVisible(kCloseButton)); |
| 134 | 135 |
| 135 MakeManager(kInCct, kInWebVr); | 136 MakeManager(kInCct, kInWebVr); |
| 136 EXPECT_FALSE(IsVisible(kCloseButton)); | 137 EXPECT_FALSE(IsVisible(kCloseButton)); |
| 137 manager_->SetWebVrMode(false); | 138 manager_->SetWebVrMode(false); |
| 138 EXPECT_TRUE(IsVisible(kCloseButton)); | 139 EXPECT_TRUE(IsVisible(kCloseButton)); |
| 139 } | 140 } |
| 140 | 141 |
| 141 } // namespace vr_shell | 142 } // namespace vr_shell |
| OLD | NEW |