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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "content/renderer/media/mock_media_constraint_factory.h" | 7 #include "content/renderer/media/mock_media_constraint_factory.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_audio_capturer.h" | 9 #include "content/renderer/media/webrtc_audio_capturer.h" |
10 #include "content/renderer/media/webrtc_local_audio_track.h" | 10 #include "content/renderer/media/webrtc_local_audio_track.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" | 13 #include "third_party/webrtc/api/mediastreaminterface.h" |
14 | 14 |
15 using ::testing::_; | 15 using ::testing::_; |
16 using ::testing::AnyNumber; | 16 using ::testing::AnyNumber; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 class MockWebRtcAudioSink : public webrtc::AudioTrackSinkInterface { | 22 class MockWebRtcAudioSink : public webrtc::AudioTrackSinkInterface { |
23 public: | 23 public: |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 } | 93 } |
94 | 94 |
95 TEST_F(WebRtcLocalAudioTrackAdapterTest, GetSignalLevel) { | 95 TEST_F(WebRtcLocalAudioTrackAdapterTest, GetSignalLevel) { |
96 webrtc::AudioTrackInterface* webrtc_track = | 96 webrtc::AudioTrackInterface* webrtc_track = |
97 static_cast<webrtc::AudioTrackInterface*>(adapter_.get()); | 97 static_cast<webrtc::AudioTrackInterface*>(adapter_.get()); |
98 int signal_level = 0; | 98 int signal_level = 0; |
99 EXPECT_TRUE(webrtc_track->GetSignalLevel(&signal_level)); | 99 EXPECT_TRUE(webrtc_track->GetSignalLevel(&signal_level)); |
100 } | 100 } |
101 | 101 |
102 } // namespace content | 102 } // namespace content |
OLD | NEW |