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

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

Issue 2066483006: WebMediaPlayerMSTest Fix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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 | « no previous file | no next file » | 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 "content/public/renderer/media_stream_renderer_factory.h" 8 #include "content/public/renderer/media_stream_renderer_factory.h"
9 #include "content/renderer/media/webmediaplayer_ms.h" 9 #include "content/renderer/media/webmediaplayer_ms.h"
10 #include "content/renderer/media/webmediaplayer_ms_compositor.h" 10 #include "content/renderer/media/webmediaplayer_ms_compositor.h"
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 EXPECT_FALSE(player_->paused()); 825 EXPECT_FALSE(player_->paused());
826 826
827 // An OnSuspendRequested() with forced suspension should pause playback. 827 // An OnSuspendRequested() with forced suspension should pause playback.
828 player_->OnSuspendRequested(true); 828 player_->OnSuspendRequested(true);
829 EXPECT_TRUE(player_->paused()); 829 EXPECT_TRUE(player_->paused());
830 830
831 // OnShown() should restart after a forced suspension. 831 // OnShown() should restart after a forced suspension.
832 player_->OnShown(); 832 player_->OnShown();
833 EXPECT_FALSE(player_->paused()); 833 EXPECT_FALSE(player_->paused());
834 EXPECT_CALL(*this, DoSetWebLayer(false)); 834 EXPECT_CALL(*this, DoSetWebLayer(false));
835
836 message_loop_.RunUntilIdle();
835 } 837 }
836 #endif 838 #endif
837 839
838 } // namespace content 840 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698