| Index: media/base/pipeline_unittest.cc
|
| diff --git a/media/base/pipeline_unittest.cc b/media/base/pipeline_unittest.cc
|
| index 412fd88bafd836fd51371eaefdf3922d42126ad3..5b5a34d98568cb3a1b59578e6d3af063e97b9b98 100644
|
| --- a/media/base/pipeline_unittest.cc
|
| +++ b/media/base/pipeline_unittest.cc
|
| @@ -315,6 +315,9 @@ class PipelineTest : public ::testing::Test {
|
| }
|
|
|
| void DestroyPipeline() {
|
| + // In real code Pipeline could be destroyed on a different thread. All weak
|
| + // pointers must have been invalidated before the stop callback returns.
|
| + DCHECK(!pipeline_->weak_factory_.HasWeakPtrs());
|
| pipeline_.reset();
|
| }
|
|
|
|
|