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

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

Issue 2464163004: [RemotePlayback] Implement 'connecting' state (Closed)
Patch Set: Rebased 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 void removeVideoTrack(blink::WebMediaPlayer::TrackId) override {} 78 void removeVideoTrack(blink::WebMediaPlayer::TrackId) override {}
79 void addTextTrack(blink::WebInbandTextTrack*) override {} 79 void addTextTrack(blink::WebInbandTextTrack*) override {}
80 void removeTextTrack(blink::WebInbandTextTrack*) override {} 80 void removeTextTrack(blink::WebInbandTextTrack*) override {}
81 void mediaSourceOpened(blink::WebMediaSource*) override {} 81 void mediaSourceOpened(blink::WebMediaSource*) override {}
82 void requestSeek(double) override {} 82 void requestSeek(double) override {}
83 void remoteRouteAvailabilityChanged(bool) override {} 83 void remoteRouteAvailabilityChanged(bool) override {}
84 void connectedToRemoteDevice() override {} 84 void connectedToRemoteDevice() override {}
85 void disconnectedFromRemoteDevice() override {} 85 void disconnectedFromRemoteDevice() override {}
86 void cancelledRemotePlaybackRequest() override {} 86 void cancelledRemotePlaybackRequest() override {}
87 void remotePlaybackStarted() override {}
87 bool isAutoplayingMuted() override { return is_autoplaying_muted_; } 88 bool isAutoplayingMuted() override { return is_autoplaying_muted_; }
88 void requestReload(const blink::WebURL& newUrl) override {} 89 void requestReload(const blink::WebURL& newUrl) override {}
89 90
90 void set_is_autoplaying_muted(bool value) { is_autoplaying_muted_ = value; } 91 void set_is_autoplaying_muted(bool value) { is_autoplaying_muted_ = value; }
91 92
92 private: 93 private:
93 bool is_autoplaying_muted_ = false; 94 bool is_autoplaying_muted_ = false;
94 95
95 DISALLOW_COPY_AND_ASSIGN(DummyWebMediaPlayerClient); 96 DISALLOW_COPY_AND_ASSIGN(DummyWebMediaPlayerClient);
96 }; 97 };
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 EXPECT_CALL(delegate_, DidPlay(_, true, false, false, _)); 687 EXPECT_CALL(delegate_, DidPlay(_, true, false, false, _));
687 client_.set_is_autoplaying_muted(true); 688 client_.set_is_autoplaying_muted(true);
688 SetDelegateState(WebMediaPlayerImpl::DelegateState::PLAYING); 689 SetDelegateState(WebMediaPlayerImpl::DelegateState::PLAYING);
689 690
690 EXPECT_CALL(delegate_, DidPlay(_, true, true, false, _)); 691 EXPECT_CALL(delegate_, DidPlay(_, true, true, false, _));
691 client_.set_is_autoplaying_muted(false); 692 client_.set_is_autoplaying_muted(false);
692 wmpi_->setVolume(1.0); 693 wmpi_->setVolume(1.0);
693 } 694 }
694 695
695 } // namespace media 696 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_cast_android.cc ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698