OLD | NEW |
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 Loading... |
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 |
OLD | NEW |