| 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 26 matching lines...) Expand all Loading... |
| 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 MOCK_METHOD1(ToggleCardboardGamepad, void(bool)); |
| 47 MOCK_METHOD1(OnUnsupportedMode, void(UiUnsupportedMode)); |
| 47 | 48 |
| 48 // Stub this as scoped pointers don't work as mock method parameters. | 49 // Stub this as scoped pointers don't work as mock method parameters. |
| 49 void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent>) {} | 50 void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent>) {} |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(MockBrowserInterface); | 53 DISALLOW_COPY_AND_ASSIGN(MockBrowserInterface); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace | 56 } // namespace |
| 56 | 57 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 visible_in_browsing.end(); | 190 visible_in_browsing.end(); |
| 190 EXPECT_EQ(should_be_visible, element->visible()); | 191 EXPECT_EQ(should_be_visible, element->visible()); |
| 191 } | 192 } |
| 192 { | 193 { |
| 193 SCOPED_TRACE("Exited Fullsceen"); | 194 SCOPED_TRACE("Exited Fullsceen"); |
| 194 EXPECT_EQ(initial_background, scene_->GetBackgroundColor()); | 195 EXPECT_EQ(initial_background, scene_->GetBackgroundColor()); |
| 195 } | 196 } |
| 196 } | 197 } |
| 197 | 198 |
| 198 } // namespace vr_shell | 199 } // namespace vr_shell |
| OLD | NEW |