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

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

Issue 2312803003: Remove calls to deprecated MessageLoop methods in content. (Closed)
Patch Set: Created 4 years, 3 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 | « content/app/android/download_main.cc ('k') | 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 "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 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 867
868 // An OnSuspendRequested() with forced suspension should pause playback. 868 // An OnSuspendRequested() with forced suspension should pause playback.
869 player_->OnSuspendRequested(true); 869 player_->OnSuspendRequested(true);
870 EXPECT_TRUE(player_->paused()); 870 EXPECT_TRUE(player_->paused());
871 871
872 // OnShown() should restart after a forced suspension. 872 // OnShown() should restart after a forced suspension.
873 player_->OnShown(); 873 player_->OnShown();
874 EXPECT_FALSE(player_->paused()); 874 EXPECT_FALSE(player_->paused());
875 EXPECT_CALL(*this, DoSetWebLayer(false)); 875 EXPECT_CALL(*this, DoSetWebLayer(false));
876 876
877 message_loop_.RunUntilIdle(); 877 base::RunLoop().RunUntilIdle();
878 } 878 }
879 #endif 879 #endif
880 880
881 } // namespace content 881 } // namespace content
OLDNEW
« no previous file with comments | « content/app/android/download_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698