OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/callback.h" | 6 #include "base/callback.h" |
| 7 #include "base/macros.h" |
7 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "content/child/child_process.h" | 11 #include "content/child/child_process.h" |
11 #include "content/renderer/media/video_capture_impl.h" | 12 #include "content/renderer/media/video_capture_impl.h" |
12 #include "content/renderer/media/video_capture_impl_manager.h" | 13 #include "content/renderer/media/video_capture_impl_manager.h" |
13 #include "content/renderer/media/video_capture_message_filter.h" | 14 #include "content/renderer/media/video_capture_message_filter.h" |
14 #include "media/base/bind_to_current_loop.h" | 15 #include "media/base/bind_to_current_loop.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 cleanup_run_loop_.Run(); | 159 cleanup_run_loop_.Run(); |
159 } | 160 } |
160 | 161 |
161 TEST_F(VideoCaptureImplManagerTest, NoLeak) { | 162 TEST_F(VideoCaptureImplManagerTest, NoLeak) { |
162 manager_->UseDevice(0).Reset(); | 163 manager_->UseDevice(0).Reset(); |
163 manager_.reset(); | 164 manager_.reset(); |
164 cleanup_run_loop_.Run(); | 165 cleanup_run_loop_.Run(); |
165 } | 166 } |
166 | 167 |
167 } // namespace content | 168 } // namespace content |
OLD | NEW |