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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLVideoElementTest.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/HTMLVideoElement.h" 5 #include "core/html/HTMLVideoElement.h"
6 6
7 #include <memory>
7 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
8 #include "core/dom/DocumentUserGestureToken.h" 9 #include "core/dom/DocumentUserGestureToken.h"
9 #include "core/loader/EmptyClients.h" 10 #include "core/loader/EmptyClients.h"
10 #include "core/page/NetworkStateNotifier.h" 11 #include "core/page/NetworkStateNotifier.h"
11 #include "core/testing/DummyPageHolder.h" 12 #include "core/testing/DummyPageHolder.h"
12 #include "platform/UserGestureIndicator.h" 13 #include "platform/UserGestureIndicator.h"
13 #include "platform/testing/UnitTestHelpers.h" 14 #include "platform/testing/UnitTestHelpers.h"
14 #include "public/platform/WebMediaPlayer.h" 15 #include "public/platform/WebMediaPlayer.h"
15 #include "public/platform/WebSize.h" 16 #include "public/platform/WebSize.h"
16 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 #include "wtf/PtrUtil.h" 19 #include "wtf/PtrUtil.h"
19 #include <memory>
20 20
21 namespace blink { 21 namespace blink {
22 22
23 namespace { 23 namespace {
24 24
25 class EmptyWebMediaPlayer : public WebMediaPlayer { 25 class EmptyWebMediaPlayer : public WebMediaPlayer {
26 public: 26 public:
27 void load(LoadType, const WebMediaPlayerSource&, CORSMode) override{}; 27 void load(LoadType, const WebMediaPlayerSource&, CORSMode) override{};
28 void play() override{}; 28 void play() override{};
29 void pause() override{}; 29 void pause() override{};
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 ::testing::Mock::VerifyAndClearExpectations(player); 147 ::testing::Mock::VerifyAndClearExpectations(player);
148 148
149 // On play, the strategy is set to normal. 149 // On play, the strategy is set to normal.
150 EXPECT_CALL(*player, 150 EXPECT_CALL(*player,
151 setBufferingStrategy(WebMediaPlayer::BufferingStrategy::Normal)); 151 setBufferingStrategy(WebMediaPlayer::BufferingStrategy::Normal));
152 m_video->play(); 152 m_video->play();
153 ::testing::Mock::VerifyAndClearExpectations(player); 153 ::testing::Mock::VerifyAndClearExpectations(player);
154 } 154 }
155 155
156 } // namespace blink 156 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLVideoElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLViewSourceDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698