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

Side by Side Diff: third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp

Issue 2820343002: Media Controls: move timeline related code to modules. (Closed)
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "modules/media_controls/MediaControlsImpl.h" 5 #include "modules/media_controls/MediaControlsImpl.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <memory> 8 #include <memory>
9 #include "core/HTMLNames.h" 9 #include "core/HTMLNames.h"
10 #include "core/css/StylePropertySet.h" 10 #include "core/css/StylePropertySet.h"
11 #include "core/dom/ClientRect.h" 11 #include "core/dom/ClientRect.h"
12 #include "core/dom/Document.h" 12 #include "core/dom/Document.h"
13 #include "core/dom/ElementTraversal.h" 13 #include "core/dom/ElementTraversal.h"
14 #include "core/dom/StyleEngine.h" 14 #include "core/dom/StyleEngine.h"
15 #include "core/events/Event.h" 15 #include "core/events/Event.h"
16 #include "core/frame/Settings.h" 16 #include "core/frame/Settings.h"
17 #include "core/html/HTMLElement.h" 17 #include "core/html/HTMLElement.h"
18 #include "core/html/HTMLVideoElement.h" 18 #include "core/html/HTMLVideoElement.h"
19 #include "core/html/shadow/MediaControlElementTypes.h" 19 #include "core/html/shadow/MediaControlElementTypes.h"
20 #include "core/input/EventHandler.h" 20 #include "core/input/EventHandler.h"
21 #include "core/layout/LayoutObject.h" 21 #include "core/layout/LayoutObject.h"
22 #include "core/loader/EmptyClients.h" 22 #include "core/loader/EmptyClients.h"
23 #include "core/testing/DummyPageHolder.h" 23 #include "core/testing/DummyPageHolder.h"
24 #include "modules/media_controls/elements/MediaControlCurrentTimeDisplayElement. h" 24 #include "modules/media_controls/elements/MediaControlCurrentTimeDisplayElement. h"
25 #include "modules/media_controls/elements/MediaControlDownloadButtonElement.h" 25 #include "modules/media_controls/elements/MediaControlDownloadButtonElement.h"
26 #include "modules/media_controls/elements/MediaControlTimelineElement.h"
26 #include "platform/heap/Handle.h" 27 #include "platform/heap/Handle.h"
27 #include "platform/testing/EmptyWebMediaPlayer.h" 28 #include "platform/testing/EmptyWebMediaPlayer.h"
28 #include "platform/testing/HistogramTester.h" 29 #include "platform/testing/HistogramTester.h"
29 #include "platform/testing/TestingPlatformSupport.h" 30 #include "platform/testing/TestingPlatformSupport.h"
30 #include "platform/testing/UnitTestHelpers.h" 31 #include "platform/testing/UnitTestHelpers.h"
31 #include "public/platform/WebMouseEvent.h" 32 #include "public/platform/WebMouseEvent.h"
32 #include "public/platform/WebScreenInfo.h" 33 #include "public/platform/WebScreenInfo.h"
33 #include "public/platform/WebSize.h" 34 #include "public/platform/WebSize.h"
34 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h " 35 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h "
35 #include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h" 36 #include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h"
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 MediaControls().PanelElement()->DispatchEvent(Event::Create("keypress")); 845 MediaControls().PanelElement()->DispatchEvent(Event::Create("keypress"));
845 platform->RunForPeriodSeconds(2); 846 platform->RunForPeriodSeconds(2);
846 EXPECT_TRUE(IsElementVisible(*panel)); 847 EXPECT_TRUE(IsElementVisible(*panel));
847 848
848 // Once user interaction stops, controls can hide. 849 // Once user interaction stops, controls can hide.
849 platform->RunForPeriodSeconds(2); 850 platform->RunForPeriodSeconds(2);
850 EXPECT_FALSE(IsElementVisible(*panel)); 851 EXPECT_FALSE(IsElementVisible(*panel));
851 } 852 }
852 853
853 } // namespace blink 854 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698