Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElementEventListenersTest.cpp

Issue 2795783004: Move core MediaControls implementation to modules/media_controls/. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/media/MediaControls.h"
10 #include "core/html/media/MediaCustomControlsFullscreenDetector.h" 11 #include "core/html/media/MediaCustomControlsFullscreenDetector.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
21 namespace blink { 21 namespace blink {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698