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

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

Issue 2276033002: Pass SkPaint instead of its alpha and mode in WebMediaPlayer::paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android should compile Created 4 years, 3 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/loader/EmptyClients.h" 8 #include "core/loader/EmptyClients.h"
9 #include "core/page/NetworkStateNotifier.h" 9 #include "core/page/NetworkStateNotifier.h"
10 #include "core/testing/DummyPageHolder.h" 10 #include "core/testing/DummyPageHolder.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 ReadyState getReadyState() const override { return ReadyStateHaveNothing; }; 44 ReadyState getReadyState() const override { return ReadyStateHaveNothing; };
45 WebString getErrorMessage() override { return WebString(); }; 45 WebString getErrorMessage() override { return WebString(); };
46 bool didLoadingProgress() override { return false; }; 46 bool didLoadingProgress() override { return false; };
47 bool hasSingleSecurityOrigin() const override { return true; }; 47 bool hasSingleSecurityOrigin() const override { return true; };
48 bool didPassCORSAccessCheck() const override { return true; }; 48 bool didPassCORSAccessCheck() const override { return true; };
49 double mediaTimeForTimeValue(double timeValue) const override { return timeV alue; }; 49 double mediaTimeForTimeValue(double timeValue) const override { return timeV alue; };
50 unsigned decodedFrameCount() const override { return 0; }; 50 unsigned decodedFrameCount() const override { return 0; };
51 unsigned droppedFrameCount() const override { return 0; }; 51 unsigned droppedFrameCount() const override { return 0; };
52 size_t audioDecodedByteCount() const override { return 0; }; 52 size_t audioDecodedByteCount() const override { return 0; };
53 size_t videoDecodedByteCount() const override { return 0; }; 53 size_t videoDecodedByteCount() const override { return 0; };
54 void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermode::Mode ) override { }; 54 void paint(WebCanvas*, const WebRect&, SkPaint&) override { };
55 }; 55 };
56 56
57 class MockWebMediaPlayer : public EmptyWebMediaPlayer { 57 class MockWebMediaPlayer : public EmptyWebMediaPlayer {
58 public: 58 public:
59 MOCK_METHOD1(setBufferingStrategy, void(BufferingStrategy)); 59 MOCK_METHOD1(setBufferingStrategy, void(BufferingStrategy));
60 }; 60 };
61 61
62 class StubFrameLoaderClient : public EmptyFrameLoaderClient { 62 class StubFrameLoaderClient : public EmptyFrameLoaderClient {
63 public: 63 public:
64 static StubFrameLoaderClient* create() 64 static StubFrameLoaderClient* create()
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 139 }
140 ::testing::Mock::VerifyAndClearExpectations(player); 140 ::testing::Mock::VerifyAndClearExpectations(player);
141 141
142 // On play, the strategy is set to normal. 142 // On play, the strategy is set to normal.
143 EXPECT_CALL(*player, setBufferingStrategy(WebMediaPlayer::BufferingStrategy: :Normal)); 143 EXPECT_CALL(*player, setBufferingStrategy(WebMediaPlayer::BufferingStrategy: :Normal));
144 m_video->play(); 144 m_video->play();
145 ::testing::Mock::VerifyAndClearExpectations(player); 145 ::testing::Mock::VerifyAndClearExpectations(player);
146 } 146 }
147 147
148 } // namespace blink 148 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLVideoElement.cpp ('k') | third_party/WebKit/Source/core/paint/VideoPainterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698