| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chromecast/media/base/media_resource_tracker.h" | 5 #include "chromecast/media/base/media_resource_tracker.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 11 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 12 #include "base/task_runner.h" | 13 #include "base/task_runner.h" |
| 13 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 14 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 17 |
| 17 namespace chromecast { | 18 namespace chromecast { |
| 18 namespace media { | 19 namespace media { |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 EXPECT_CALL(*test_mocks_, OnStopUsingMedia()).Times(0); | 248 EXPECT_CALL(*test_mocks_, OnStopUsingMedia()).Times(0); |
| 248 | 249 |
| 249 DecrementMediaUsageCount(); | 250 DecrementMediaUsageCount(); |
| 250 | 251 |
| 251 RunUntilIdle(media_task_runner_.get()); | 252 RunUntilIdle(media_task_runner_.get()); |
| 252 base::RunLoop().RunUntilIdle(); | 253 base::RunLoop().RunUntilIdle(); |
| 253 } | 254 } |
| 254 | 255 |
| 255 } // namespace media | 256 } // namespace media |
| 256 } // namespace chromecast | 257 } // namespace chromecast |
| OLD | NEW |