| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 258 | 259 | 
| 259   manager_->SetAudioCapturingIndicator(false); | 260   manager_->SetAudioCapturingIndicator(false); | 
| 260   manager_->SetVideoCapturingIndicator(false); | 261   manager_->SetVideoCapturingIndicator(false); | 
| 261   manager_->SetScreenCapturingIndicator(false); | 262   manager_->SetScreenCapturingIndicator(false); | 
| 262 | 263 | 
| 263   EXPECT_FALSE(IsVisible(kAudioCaptureIndicator)); | 264   EXPECT_FALSE(IsVisible(kAudioCaptureIndicator)); | 
| 264   EXPECT_FALSE(IsVisible(kVideoCaptureIndicator)); | 265   EXPECT_FALSE(IsVisible(kVideoCaptureIndicator)); | 
| 265   EXPECT_FALSE(IsVisible(kScreenCaptureIndicator)); | 266   EXPECT_FALSE(IsVisible(kScreenCaptureIndicator)); | 
| 266 } | 267 } | 
| 267 }  // namespace vr_shell | 268 }  // namespace vr_shell | 
| OLD | NEW | 
|---|