| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/renderer/media/webrtc/webrtc_local_audio_track_adapter.h" | 8 #include "content/renderer/media/webrtc/webrtc_local_audio_track_adapter.h" |
| 9 #include "content/renderer/media/webrtc_local_audio_source_provider.h" | 9 #include "content/renderer/media/webrtc_local_audio_source_provider.h" |
| 10 #include "content/renderer/media/webrtc_local_audio_track.h" | 10 #include "content/renderer/media/webrtc_local_audio_track.h" |
| 11 #include "media/audio/audio_parameters.h" | |
| 12 #include "media/base/audio_bus.h" | 11 #include "media/base/audio_bus.h" |
| 12 #include "media/base/audio_parameters.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 14 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
| 15 #include "third_party/WebKit/public/platform/WebString.h" | 15 #include "third_party/WebKit/public/platform/WebString.h" |
| 16 #include "third_party/WebKit/public/web/WebHeap.h" | 16 #include "third_party/WebKit/public/web/WebHeap.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 class WebRtcLocalAudioSourceProviderTest : public testing::Test { | 20 class WebRtcLocalAudioSourceProviderTest : public testing::Test { |
| 21 protected: | 21 protected: |
| 22 void SetUp() override { | 22 void SetUp() override { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Stop the audio track. | 129 // Stop the audio track. |
| 130 WebRtcLocalAudioTrack* native_track = static_cast<WebRtcLocalAudioTrack*>( | 130 WebRtcLocalAudioTrack* native_track = static_cast<WebRtcLocalAudioTrack*>( |
| 131 MediaStreamTrack::GetTrack(blink_track_)); | 131 MediaStreamTrack::GetTrack(blink_track_)); |
| 132 native_track->Stop(); | 132 native_track->Stop(); |
| 133 | 133 |
| 134 // Delete the source provider. | 134 // Delete the source provider. |
| 135 source_provider_.reset(); | 135 source_provider_.reset(); |
| 136 } | 136 } |
| 137 | 137 |
| 138 } // namespace content | 138 } // namespace content |
| OLD | NEW |