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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ptr_util.h" |
13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
14 #include "media/base/cdm_config.h" | 15 #include "media/base/cdm_config.h" |
15 #include "media/base/mock_filters.h" | 16 #include "media/base/mock_filters.h" |
16 #include "media/base/test_helpers.h" | 17 #include "media/base/test_helpers.h" |
17 #include "media/mojo/clients/mojo_demuxer_stream_impl.h" | 18 #include "media/mojo/clients/mojo_demuxer_stream_impl.h" |
18 #include "media/mojo/common/media_type_converters.h" | 19 #include "media/mojo/common/media_type_converters.h" |
19 #include "media/mojo/interfaces/content_decryption_module.mojom.h" | 20 #include "media/mojo/interfaces/content_decryption_module.mojom.h" |
20 #include "media/mojo/interfaces/decryptor.mojom.h" | 21 #include "media/mojo/interfaces/decryptor.mojom.h" |
21 #include "media/mojo/interfaces/interface_factory.mojom.h" | 22 #include "media/mojo/interfaces/interface_factory.mojom.h" |
22 #include "media/mojo/interfaces/media_service.mojom.h" | 23 #include "media/mojo/interfaces/media_service.mojom.h" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // close the connection. | 213 // close the connection. |
213 EXPECT_CALL(*this, ConnectionClosed()) | 214 EXPECT_CALL(*this, ConnectionClosed()) |
214 .Times(Exactly(1)) | 215 .Times(Exactly(1)) |
215 .WillOnce(Invoke(run_loop_.get(), &base::RunLoop::Quit)); | 216 .WillOnce(Invoke(run_loop_.get(), &base::RunLoop::Quit)); |
216 interface_factory_.reset(); | 217 interface_factory_.reset(); |
217 | 218 |
218 run_loop_->Run(); | 219 run_loop_->Run(); |
219 } | 220 } |
220 | 221 |
221 } // namespace media | 222 } // namespace media |
OLD | NEW |