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

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 the java enum comment 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const blink::WebString& label, 75 const blink::WebString& label,
76 const blink::WebString& language, 76 const blink::WebString& language,
77 bool selected) override { 77 bool selected) override {
78 return blink::WebMediaPlayer::TrackId(); 78 return blink::WebMediaPlayer::TrackId();
79 } 79 }
80 void removeVideoTrack(blink::WebMediaPlayer::TrackId) override {} 80 void removeVideoTrack(blink::WebMediaPlayer::TrackId) override {}
81 void addTextTrack(blink::WebInbandTextTrack*) override {} 81 void addTextTrack(blink::WebInbandTextTrack*) override {}
82 void removeTextTrack(blink::WebInbandTextTrack*) override {} 82 void removeTextTrack(blink::WebInbandTextTrack*) override {}
83 void mediaSourceOpened(blink::WebMediaSource*) override {} 83 void mediaSourceOpened(blink::WebMediaSource*) override {}
84 void requestSeek(double) override {} 84 void requestSeek(double) override {}
85 void remoteRouteAvailabilityChanged(bool) override {} 85 void remoteRouteAvailabilityChanged(
86 blink::WebRemotePlaybackAvailability) override {}
86 void connectedToRemoteDevice() override {} 87 void connectedToRemoteDevice() override {}
87 void disconnectedFromRemoteDevice() override {} 88 void disconnectedFromRemoteDevice() override {}
88 void cancelledRemotePlaybackRequest() override {} 89 void cancelledRemotePlaybackRequest() override {}
89 void remotePlaybackStarted() override {} 90 void remotePlaybackStarted() override {}
90 bool isAutoplayingMuted() override { return is_autoplaying_muted_; } 91 bool isAutoplayingMuted() override { return is_autoplaying_muted_; }
91 void requestReload(const blink::WebURL& newUrl) override {} 92 void requestReload(const blink::WebURL& newUrl) override {}
92 93
93 void set_is_autoplaying_muted(bool value) { is_autoplaying_muted_ = value; } 94 void set_is_autoplaying_muted(bool value) { is_autoplaying_muted_ = value; }
94 95
95 private: 96 private:
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 EXPECT_CALL(delegate_, DidPlay(_, true, false, false, _)); 718 EXPECT_CALL(delegate_, DidPlay(_, true, false, false, _));
718 client_.set_is_autoplaying_muted(true); 719 client_.set_is_autoplaying_muted(true);
719 SetDelegateState(WebMediaPlayerImpl::DelegateState::PLAYING); 720 SetDelegateState(WebMediaPlayerImpl::DelegateState::PLAYING);
720 721
721 EXPECT_CALL(delegate_, DidPlay(_, true, true, false, _)); 722 EXPECT_CALL(delegate_, DidPlay(_, true, true, false, _));
722 client_.set_is_autoplaying_muted(false); 723 client_.set_is_autoplaying_muted(false);
723 wmpi_->setVolume(1.0); 724 wmpi_->setVolume(1.0);
724 } 725 }
725 726
726 } // namespace media 727 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698