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

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

Issue 2746103002: Let MockWebMediaPlayers in blink unit tests inherit from EmptyWebMediaPlayer (Closed)
Patch Set: rebased Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegateTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegateTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698