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

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

Issue 2487373003: Disable background video track behind a feature flag (Closed)
Patch Set: Added the feature flag to histograms.xml 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(bool) override {}
86 void connectedToRemoteDevice() override {} 86 void connectedToRemoteDevice() override {}
87 void disconnectedFromRemoteDevice() override {} 87 void disconnectedFromRemoteDevice() override {}
88 void cancelledRemotePlaybackRequest() override {} 88 void cancelledRemotePlaybackRequest() override {}
89 void remotePlaybackStarted() override {} 89 void remotePlaybackStarted() override {}
90 void hidden() override {}
91 void shown() override {}
90 bool isAutoplayingMuted() override { return is_autoplaying_muted_; } 92 bool isAutoplayingMuted() override { return is_autoplaying_muted_; }
91 void requestReload(const blink::WebURL& newUrl) override {} 93 void requestReload(const blink::WebURL& newUrl) override {}
92 94
93 void set_is_autoplaying_muted(bool value) { is_autoplaying_muted_ = value; } 95 void set_is_autoplaying_muted(bool value) { is_autoplaying_muted_ = value; }
94 96
95 private: 97 private:
96 bool is_autoplaying_muted_ = false; 98 bool is_autoplaying_muted_ = false;
97 99
98 DISALLOW_COPY_AND_ASSIGN(DummyWebMediaPlayerClient); 100 DISALLOW_COPY_AND_ASSIGN(DummyWebMediaPlayerClient);
99 }; 101 };
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 EXPECT_CALL(delegate_, DidPlay(_, true, false, false, _)); 719 EXPECT_CALL(delegate_, DidPlay(_, true, false, false, _));
718 client_.set_is_autoplaying_muted(true); 720 client_.set_is_autoplaying_muted(true);
719 SetDelegateState(WebMediaPlayerImpl::DelegateState::PLAYING); 721 SetDelegateState(WebMediaPlayerImpl::DelegateState::PLAYING);
720 722
721 EXPECT_CALL(delegate_, DidPlay(_, true, true, false, _)); 723 EXPECT_CALL(delegate_, DidPlay(_, true, true, false, _));
722 client_.set_is_autoplaying_muted(false); 724 client_.set_is_autoplaying_muted(false);
723 wmpi_->setVolume(1.0); 725 wmpi_->setVolume(1.0);
724 } 726 }
725 727
726 } // namespace media 728 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698