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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 "core/html/shadow/MediaControls.h" 5 #include "core/html/shadow/MediaControls.h"
6 6
7 #include <memory>
7 #include "core/HTMLNames.h" 8 #include "core/HTMLNames.h"
8 #include "core/css/StylePropertySet.h" 9 #include "core/css/StylePropertySet.h"
9 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
10 #include "core/dom/ElementTraversal.h" 11 #include "core/dom/ElementTraversal.h"
11 #include "core/dom/StyleEngine.h" 12 #include "core/dom/StyleEngine.h"
12 #include "core/frame/Settings.h" 13 #include "core/frame/Settings.h"
13 #include "core/html/HTMLVideoElement.h" 14 #include "core/html/HTMLVideoElement.h"
14 #include "core/loader/EmptyClients.h" 15 #include "core/loader/EmptyClients.h"
15 #include "core/testing/DummyPageHolder.h" 16 #include "core/testing/DummyPageHolder.h"
16 #include "platform/heap/Handle.h" 17 #include "platform/heap/Handle.h"
17 #include "platform/testing/UnitTestHelpers.h" 18 #include "platform/testing/UnitTestHelpers.h"
18 #include "public/platform/WebMediaPlayer.h" 19 #include "public/platform/WebMediaPlayer.h"
19 #include "public/platform/WebSize.h" 20 #include "public/platform/WebSize.h"
20 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h " 21 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h "
21 #include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h" 22 #include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h"
22 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
23 #include <memory>
24 24
25 namespace blink { 25 namespace blink {
26 26
27 namespace { 27 namespace {
28 28
29 class MockVideoWebMediaPlayer : public WebMediaPlayer { 29 class MockVideoWebMediaPlayer : public WebMediaPlayer {
30 public: 30 public:
31 void load(LoadType, const WebMediaPlayerSource&, CORSMode) override{}; 31 void load(LoadType, const WebMediaPlayerSource&, CORSMode) override{};
32 void play() override{}; 32 void play() override{};
33 void pause() override{}; 33 void pause() override{};
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 mediaControls().show(); 309 mediaControls().show();
310 mediaControls().toggleOverflowMenu(); 310 mediaControls().toggleOverflowMenu();
311 EXPECT_TRUE(isElementVisible(*overflowList)); 311 EXPECT_TRUE(isElementVisible(*overflowList));
312 312
313 simulateHideMediaControlsTimerFired(); 313 simulateHideMediaControlsTimerFired();
314 EXPECT_TRUE(isElementVisible(*overflowList)); 314 EXPECT_TRUE(isElementVisible(*overflowList));
315 EXPECT_TRUE(isElementVisible(*panel)); 315 EXPECT_TRUE(isElementVisible(*panel));
316 } 316 }
317 317
318 } // namespace blink 318 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698