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