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> |
| 6 |
| 7 #include "base/macros.h" |
5 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
6 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
7 #include "content/child/child_process.h" | 10 #include "content/child/child_process.h" |
8 #include "content/renderer/media/media_recorder_handler.h" | 11 #include "content/renderer/media/media_recorder_handler.h" |
9 #include "content/renderer/media/mock_media_stream_registry.h" | 12 #include "content/renderer/media/mock_media_stream_registry.h" |
10 #include "media/audio/simple_sources.h" | 13 #include "media/audio/simple_sources.h" |
11 #include "media/base/audio_bus.h" | 14 #include "media/base/audio_bus.h" |
12 #include "media/base/video_frame.h" | 15 #include "media/base/video_frame.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 } | 324 } |
322 | 325 |
323 media_recorder_handler_->stop(); | 326 media_recorder_handler_->stop(); |
324 | 327 |
325 // Expect a last call on destruction, with size 0 and |lastInSlice| true. | 328 // Expect a last call on destruction, with size 0 and |lastInSlice| true. |
326 EXPECT_CALL(*this, writeData(nullptr, 0, true)).Times(1); | 329 EXPECT_CALL(*this, writeData(nullptr, 0, true)).Times(1); |
327 media_recorder_handler_.reset(); | 330 media_recorder_handler_.reset(); |
328 } | 331 } |
329 | 332 |
330 } // namespace content | 333 } // namespace content |
OLD | NEW |