| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/test_runner/web_test_proxy.h" | 5 #include "components/test_runner/web_test_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "components/test_runner/accessibility_controller.h" | 10 #include "components/test_runner/accessibility_controller.h" |
| 11 #include "components/test_runner/event_sender.h" | 11 #include "components/test_runner/event_sender.h" |
| 12 #include "components/test_runner/mock_screen_orientation_client.h" | 12 #include "components/test_runner/mock_screen_orientation_client.h" |
| 13 #include "components/test_runner/test_interfaces.h" | 13 #include "components/test_runner/test_interfaces.h" |
| 14 #include "components/test_runner/test_runner.h" | 14 #include "components/test_runner/test_runner.h" |
| 15 #include "components/test_runner/test_runner_for_specific_view.h" |
| 15 #include "components/test_runner/text_input_controller.h" | 16 #include "components/test_runner/text_input_controller.h" |
| 16 #include "components/test_runner/web_test_delegate.h" | 17 #include "components/test_runner/web_test_delegate.h" |
| 17 #include "components/test_runner/web_test_interfaces.h" | 18 #include "components/test_runner/web_test_interfaces.h" |
| 18 | 19 |
| 19 namespace test_runner { | 20 namespace test_runner { |
| 20 | 21 |
| 21 WebTestProxyBase::WebTestProxyBase() | 22 WebTestProxyBase::WebTestProxyBase() |
| 22 : test_interfaces_(nullptr), | 23 : test_interfaces_(nullptr), |
| 23 delegate_(nullptr), | 24 delegate_(nullptr), |
| 24 web_view_(nullptr), | 25 web_view_(nullptr), |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 MockScreenOrientationClient* mock_client = | 61 MockScreenOrientationClient* mock_client = |
| 61 test_interfaces_->GetTestRunner()->getMockScreenOrientationClient(); | 62 test_interfaces_->GetTestRunner()->getMockScreenOrientationClient(); |
| 62 if (mock_client->IsDisabled()) | 63 if (mock_client->IsDisabled()) |
| 63 return; | 64 return; |
| 64 // Override screen orientation information with mock data. | 65 // Override screen orientation information with mock data. |
| 65 screen_info.orientationType = mock_client->CurrentOrientationType(); | 66 screen_info.orientationType = mock_client->CurrentOrientationType(); |
| 66 screen_info.orientationAngle = mock_client->CurrentOrientationAngle(); | 67 screen_info.orientationAngle = mock_client->CurrentOrientationAngle(); |
| 67 } | 68 } |
| 68 | 69 |
| 69 } // namespace test_runner | 70 } // namespace test_runner |
| OLD | NEW |