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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 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 "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/DocumentUserGestureToken.h" 8 #include "core/dom/DocumentUserGestureToken.h"
9 #include "core/loader/EmptyClients.h" 9 #include "core/loader/EmptyClients.h"
10 #include "core/page/NetworkStateNotifier.h" 10 #include "core/page/NetworkStateNotifier.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool didLoadingProgress() override { return false; }; 49 bool didLoadingProgress() override { return false; };
50 bool hasSingleSecurityOrigin() const override { return true; }; 50 bool hasSingleSecurityOrigin() const override { return true; };
51 bool didPassCORSAccessCheck() const override { return true; }; 51 bool didPassCORSAccessCheck() const override { return true; };
52 double mediaTimeForTimeValue(double timeValue) const override { 52 double mediaTimeForTimeValue(double timeValue) const override {
53 return timeValue; 53 return timeValue;
54 }; 54 };
55 unsigned decodedFrameCount() const override { return 0; }; 55 unsigned decodedFrameCount() const override { return 0; };
56 unsigned droppedFrameCount() const override { return 0; }; 56 unsigned droppedFrameCount() const override { return 0; };
57 size_t audioDecodedByteCount() const override { return 0; }; 57 size_t audioDecodedByteCount() const override { return 0; };
58 size_t videoDecodedByteCount() const override { return 0; }; 58 size_t videoDecodedByteCount() const override { return 0; };
59 void paint(WebCanvas*, const WebRect&, SkPaint&) override{}; 59 void paint(WebCanvas*, const WebRect&, PaintFlags&) override{};
60 }; 60 };
61 61
62 class MockWebMediaPlayer : public EmptyWebMediaPlayer { 62 class MockWebMediaPlayer : public EmptyWebMediaPlayer {
63 public: 63 public:
64 MOCK_METHOD1(setBufferingStrategy, void(BufferingStrategy)); 64 MOCK_METHOD1(setBufferingStrategy, void(BufferingStrategy));
65 }; 65 };
66 66
67 class StubFrameLoaderClient : public EmptyFrameLoaderClient { 67 class StubFrameLoaderClient : public EmptyFrameLoaderClient {
68 public: 68 public:
69 static StubFrameLoaderClient* create() { return new StubFrameLoaderClient; } 69 static StubFrameLoaderClient* create() { return new StubFrameLoaderClient; }
(...skipping 77 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

Powered by Google App Engine
This is Rietveld 408576698