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

Side by Side Diff: media/blink/webmediaplayer_impl_unittest.cc

Issue 2480003002: [RemotePlayback] Keep track of source compatibility and reject prompt() correspondingly (Closed)
Patch Set: Fixed failing tests Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "media/blink/webmediaplayer_impl.h" 5 #include "media/blink/webmediaplayer_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const blink::WebString& label, 74 const blink::WebString& label,
75 const blink::WebString& language, 75 const blink::WebString& language,
76 bool selected) override { 76 bool selected) override {
77 return blink::WebMediaPlayer::TrackId(); 77 return blink::WebMediaPlayer::TrackId();
78 } 78 }
79 void removeVideoTrack(blink::WebMediaPlayer::TrackId) override {} 79 void removeVideoTrack(blink::WebMediaPlayer::TrackId) override {}
80 void addTextTrack(blink::WebInbandTextTrack*) override {} 80 void addTextTrack(blink::WebInbandTextTrack*) override {}
81 void removeTextTrack(blink::WebInbandTextTrack*) override {} 81 void removeTextTrack(blink::WebInbandTextTrack*) override {}
82 void mediaSourceOpened(blink::WebMediaSource*) override {} 82 void mediaSourceOpened(blink::WebMediaSource*) override {}
83 void requestSeek(double) override {} 83 void requestSeek(double) override {}
84 void remoteRouteAvailabilityChanged(bool) override {} 84 void remoteRouteAvailabilityChanged(bool, bool) override {}
85 void connectedToRemoteDevice() override {} 85 void connectedToRemoteDevice() override {}
86 void disconnectedFromRemoteDevice() override {} 86 void disconnectedFromRemoteDevice() override {}
87 void cancelledRemotePlaybackRequest() override {} 87 void cancelledRemotePlaybackRequest() override {}
88 void remotePlaybackStarted() override {} 88 void remotePlaybackStarted() override {}
89 bool isAutoplayingMuted() override { return is_autoplaying_muted_; } 89 bool isAutoplayingMuted() override { return is_autoplaying_muted_; }
90 void requestReload(const blink::WebURL& newUrl) override {} 90 void requestReload(const blink::WebURL& newUrl) override {}
91 91
92 void set_is_autoplaying_muted(bool value) { is_autoplaying_muted_ = value; } 92 void set_is_autoplaying_muted(bool value) { is_autoplaying_muted_ = value; }
93 93
94 private: 94 private:
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 EXPECT_CALL(delegate_, DidPlay(_, true, false, false, _)); 717 EXPECT_CALL(delegate_, DidPlay(_, true, false, false, _));
718 client_.set_is_autoplaying_muted(true); 718 client_.set_is_autoplaying_muted(true);
719 SetDelegateState(WebMediaPlayerImpl::DelegateState::PLAYING); 719 SetDelegateState(WebMediaPlayerImpl::DelegateState::PLAYING);
720 720
721 EXPECT_CALL(delegate_, DidPlay(_, true, true, false, _)); 721 EXPECT_CALL(delegate_, DidPlay(_, true, true, false, _));
722 client_.set_is_autoplaying_muted(false); 722 client_.set_is_autoplaying_muted(false);
723 wmpi_->setVolume(1.0); 723 wmpi_->setVolume(1.0);
724 } 724 }
725 725
726 } // namespace media 726 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698