| 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/MediaCustomControlsFullscreenDetector.h" | 5 #include "core/html/MediaCustomControlsFullscreenDetector.h" |
| 6 | 6 |
| 7 #include "core/EventTypeNames.h" | 7 #include "core/EventTypeNames.h" |
| 8 #include "core/html/HTMLVideoElement.h" | 8 #include "core/html/HTMLVideoElement.h" |
| 9 #include "core/testing/DummyPageHolder.h" | 9 #include "core/testing/DummyPageHolder.h" |
| 10 #include "platform/geometry/IntRect.h" | 10 #include "platform/geometry/IntRect.h" |
| 11 #include "public/platform/WebMediaPlayer.h" | |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 12 |
| 14 namespace blink { | 13 namespace blink { |
| 15 | 14 |
| 16 namespace { | 15 namespace { |
| 17 | 16 |
| 18 struct TestParam { | 17 struct TestParam { |
| 19 String description; | 18 String description; |
| 20 IntRect targetRect; | 19 IntRect targetRect; |
| 21 bool expectedResult; | 20 bool expectedResult; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 document(), EventTypeNames::webkitfullscreenchange, | 116 document(), EventTypeNames::webkitfullscreenchange, |
| 118 &fullscreenDetector())); | 117 &fullscreenDetector())); |
| 119 EXPECT_TRUE(checkEventListenerRegistered( | 118 EXPECT_TRUE(checkEventListenerRegistered( |
| 120 newDocument(), EventTypeNames::fullscreenchange, &fullscreenDetector())); | 119 newDocument(), EventTypeNames::fullscreenchange, &fullscreenDetector())); |
| 121 EXPECT_TRUE(checkEventListenerRegistered( | 120 EXPECT_TRUE(checkEventListenerRegistered( |
| 122 newDocument(), EventTypeNames::webkitfullscreenchange, | 121 newDocument(), EventTypeNames::webkitfullscreenchange, |
| 123 &fullscreenDetector())); | 122 &fullscreenDetector())); |
| 124 } | 123 } |
| 125 | 124 |
| 126 } // namespace blink | 125 } // namespace blink |
| OLD | NEW |