| 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 "core/html/HTMLMediaElement.h" | 5 #include "core/html/HTMLMediaElement.h" |
| 6 | 6 |
| 7 #include "core/dom/DocumentUserGestureToken.h" | 7 #include "core/dom/DocumentUserGestureToken.h" |
| 8 #include "core/dom/Fullscreen.h" | 8 #include "core/dom/Fullscreen.h" |
| 9 #include "core/html/HTMLVideoElement.h" | 9 #include "core/html/HTMLVideoElement.h" |
| 10 #include "core/html/MediaCustomControlsFullscreenDetector.h" | 10 #include "core/html/media/MediaCustomControlsFullscreenDetector.h" |
| 11 #include "core/html/shadow/MediaControls.h" | 11 #include "core/html/shadow/MediaControls.h" |
| 12 #include "core/loader/EmptyClients.h" | 12 #include "core/loader/EmptyClients.h" |
| 13 #include "core/testing/DummyPageHolder.h" | 13 #include "core/testing/DummyPageHolder.h" |
| 14 #include "platform/RuntimeEnabledFeatures.h" | 14 #include "platform/RuntimeEnabledFeatures.h" |
| 15 #include "platform/UserGestureIndicator.h" | 15 #include "platform/UserGestureIndicator.h" |
| 16 #include "platform/testing/EmptyWebMediaPlayer.h" | 16 #include "platform/testing/EmptyWebMediaPlayer.h" |
| 17 #include "platform/testing/UnitTestHelpers.h" | 17 #include "platform/testing/UnitTestHelpers.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 20 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 EXPECT_FALSE(isCheckViewportIntersectionTimerActive(detector)); | 175 EXPECT_FALSE(isCheckViewportIntersectionTimerActive(detector)); |
| 176 // Should only notify the false value when ExecutionContext is destroyed. | 176 // Should only notify the false value when ExecutionContext is destroyed. |
| 177 EXPECT_EQ(1u, observedResults.size()); | 177 EXPECT_EQ(1u, observedResults.size()); |
| 178 EXPECT_FALSE(observedResults[0]); | 178 EXPECT_FALSE(observedResults[0]); |
| 179 | 179 |
| 180 RuntimeEnabledFeatures::setVideoFullscreenDetectionEnabled( | 180 RuntimeEnabledFeatures::setVideoFullscreenDetectionEnabled( |
| 181 originalVideoFullscreenDetectionEnabled); | 181 originalVideoFullscreenDetectionEnabled); |
| 182 } | 182 } |
| 183 | 183 |
| 184 } // namespace blink | 184 } // namespace blink |
| OLD | NEW |