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

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

Issue 1850733003: Media: Report informational error messages to HTMLMediaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_locking_in_rendermedialog
Patch Set: Rebase to ToT, address watk@'s nits. Created 4 years, 8 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 | « media/blink/webmediaplayer_impl.cc ('k') | third_party/WebKit/public/platform/WebMediaPlayer.h » ('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 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 22 matching lines...) Expand all
33 void setSinkId(const WebString& sinkId, const WebSecurityOrigin&, WebSetSink IdCallbacks*) override { }; 33 void setSinkId(const WebString& sinkId, const WebSecurityOrigin&, WebSetSink IdCallbacks*) override { };
34 bool hasVideo() const override { return false; }; 34 bool hasVideo() const override { return false; };
35 bool hasAudio() const override { return false; }; 35 bool hasAudio() const override { return false; };
36 WebSize naturalSize() const override { return WebSize(0, 0); }; 36 WebSize naturalSize() const override { return WebSize(0, 0); };
37 bool paused() const override { return false; }; 37 bool paused() const override { return false; };
38 bool seeking() const override { return false; }; 38 bool seeking() const override { return false; };
39 double duration() const override { return 0.0; }; 39 double duration() const override { return 0.0; };
40 double currentTime() const override { return 0.0; }; 40 double currentTime() const override { return 0.0; };
41 NetworkState getNetworkState() const override { return NetworkStateEmpty; }; 41 NetworkState getNetworkState() const override { return NetworkStateEmpty; };
42 ReadyState getReadyState() const override { return ReadyStateHaveNothing; }; 42 ReadyState getReadyState() const override { return ReadyStateHaveNothing; };
43 WebString getErrorMessage() override { return WebString(); };
43 bool didLoadingProgress() override { return false; }; 44 bool didLoadingProgress() override { return false; };
44 bool hasSingleSecurityOrigin() const override { return true; }; 45 bool hasSingleSecurityOrigin() const override { return true; };
45 bool didPassCORSAccessCheck() const override { return true; }; 46 bool didPassCORSAccessCheck() const override { return true; };
46 double mediaTimeForTimeValue(double timeValue) const override { return timeV alue; }; 47 double mediaTimeForTimeValue(double timeValue) const override { return timeV alue; };
47 unsigned decodedFrameCount() const override { return 0; }; 48 unsigned decodedFrameCount() const override { return 0; };
48 unsigned droppedFrameCount() const override { return 0; }; 49 unsigned droppedFrameCount() const override { return 0; };
49 size_t audioDecodedByteCount() const override { return 0; }; 50 size_t audioDecodedByteCount() const override { return 0; };
50 size_t videoDecodedByteCount() const override { return 0; }; 51 size_t videoDecodedByteCount() const override { return 0; };
51 void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermode::Mode ) override { }; 52 void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermode::Mode ) override { };
52 }; 53 };
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 137 }
137 ::testing::Mock::VerifyAndClearExpectations(player); 138 ::testing::Mock::VerifyAndClearExpectations(player);
138 139
139 // On play, the strategy is set to normal. 140 // On play, the strategy is set to normal.
140 EXPECT_CALL(*player, setBufferingStrategy(WebMediaPlayer::BufferingStrategy: :Normal)); 141 EXPECT_CALL(*player, setBufferingStrategy(WebMediaPlayer::BufferingStrategy: :Normal));
141 m_video->play(); 142 m_video->play();
142 ::testing::Mock::VerifyAndClearExpectations(player); 143 ::testing::Mock::VerifyAndClearExpectations(player);
143 } 144 }
144 145
145 } // namespace blink 146 } // namespace blink
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | third_party/WebKit/public/platform/WebMediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698