| 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 "content/renderer/media/webrtc_audio_renderer.h" | 5 #include "content/renderer/media/webrtc_audio_renderer.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/message_loop/message_loop.h" |
| 12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 13 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 14 #include "content/public/renderer/media_stream_audio_renderer.h" | 15 #include "content/public/renderer/media_stream_audio_renderer.h" |
| 15 #include "content/renderer/media/audio_device_factory.h" | 16 #include "content/renderer/media/audio_device_factory.h" |
| 16 #include "content/renderer/media/webrtc_audio_device_impl.h" | 17 #include "content/renderer/media/webrtc_audio_device_impl.h" |
| 17 #include "media/base/audio_capturer_source.h" | 18 #include "media/base/audio_capturer_source.h" |
| 18 #include "media/base/mock_audio_renderer_sink.h" | 19 #include "media/base/mock_audio_renderer_sink.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "third_party/WebKit/public/platform/WebMediaStream.h" | 22 #include "third_party/WebKit/public/platform/WebMediaStream.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 loop.Run(); | 274 loop.Run(); |
| 274 EXPECT_EQ(kDefaultOutputDeviceId, | 275 EXPECT_EQ(kDefaultOutputDeviceId, |
| 275 mock_sink_->GetOutputDeviceInfo().device_id()); | 276 mock_sink_->GetOutputDeviceInfo().device_id()); |
| 276 | 277 |
| 277 EXPECT_CALL(*mock_sink_.get(), Stop()); | 278 EXPECT_CALL(*mock_sink_.get(), Stop()); |
| 278 EXPECT_CALL(*source_.get(), RemoveAudioRenderer(renderer_.get())); | 279 EXPECT_CALL(*source_.get(), RemoveAudioRenderer(renderer_.get())); |
| 279 renderer_proxy_->Stop(); | 280 renderer_proxy_->Stop(); |
| 280 } | 281 } |
| 281 | 282 |
| 282 } // namespace content | 283 } // namespace content |
| OLD | NEW |