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

Side by Side Diff: content/renderer/media/webmediaplayer_ms_unittest.cc

Issue 2487373003: Disable background video track behind a feature flag (Closed)
Patch Set: Rebase + comment fix Created 4 years 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 | « content/public/common/web_preferences.cc ('k') | content/renderer/render_view_impl.cc » ('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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "content/public/renderer/media_stream_renderer_factory.h" 9 #include "content/public/renderer/media_stream_renderer_factory.h"
10 #include "content/renderer/media/webmediaplayer_ms.h" 10 #include "content/renderer/media/webmediaplayer_ms.h"
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 void mediaSourceOpened(blink::WebMediaSource*) override {} 425 void mediaSourceOpened(blink::WebMediaSource*) override {}
426 void requestSeek(double) override {} 426 void requestSeek(double) override {}
427 void remoteRouteAvailabilityChanged( 427 void remoteRouteAvailabilityChanged(
428 blink::WebRemotePlaybackAvailability) override {} 428 blink::WebRemotePlaybackAvailability) override {}
429 void connectedToRemoteDevice() override {} 429 void connectedToRemoteDevice() override {}
430 void disconnectedFromRemoteDevice() override {} 430 void disconnectedFromRemoteDevice() override {}
431 void cancelledRemotePlaybackRequest() override {} 431 void cancelledRemotePlaybackRequest() override {}
432 void remotePlaybackStarted() override {} 432 void remotePlaybackStarted() override {}
433 bool isAutoplayingMuted() override { return false; } 433 bool isAutoplayingMuted() override { return false; }
434 void requestReload(const blink::WebURL& newUrl) override {} 434 void requestReload(const blink::WebURL& newUrl) override {}
435 bool hasSelectedVideoTrack() override { return false; }
436 blink::WebMediaPlayer::TrackId getSelectedVideoTrackId() override {
437 return blink::WebMediaPlayer::TrackId();
438 }
435 439
436 // Implementation of cc::VideoFrameProvider::Client 440 // Implementation of cc::VideoFrameProvider::Client
437 void StopUsingProvider() override; 441 void StopUsingProvider() override;
438 void StartRendering() override; 442 void StartRendering() override;
439 void StopRendering() override; 443 void StopRendering() override;
440 void DidReceiveFrame() override {} 444 void DidReceiveFrame() override {}
441 445
442 // For test use 446 // For test use
443 void SetBackgroundRendering(bool background_rendering) { 447 void SetBackgroundRendering(bool background_rendering) {
444 background_rendering_ = background_rendering; 448 background_rendering_ = background_rendering;
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 // OnShown() should restart after a forced suspension. 924 // OnShown() should restart after a forced suspension.
921 player_->OnShown(); 925 player_->OnShown();
922 EXPECT_FALSE(player_->paused()); 926 EXPECT_FALSE(player_->paused());
923 EXPECT_CALL(*this, DoSetWebLayer(false)); 927 EXPECT_CALL(*this, DoSetWebLayer(false));
924 928
925 base::RunLoop().RunUntilIdle(); 929 base::RunLoop().RunUntilIdle();
926 } 930 }
927 #endif 931 #endif
928 932
929 } // namespace content 933 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698