OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include <string.h> | 11 #include <string.h> |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 #include <utility> | 14 #include <utility> |
15 | 15 |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "webrtc/modules/audio_mixer/audio_mixer.h" | |
17 #include "webrtc/modules/audio_mixer/audio_mixer_defines.h" | 18 #include "webrtc/modules/audio_mixer/audio_mixer_defines.h" |
18 #include "webrtc/modules/audio_mixer/audio_mixer.h" | |
aleloi
2016/09/01 14:12:22
Include order.
| |
19 | 19 |
20 using testing::_; | 20 using testing::_; |
21 using testing::Exactly; | 21 using testing::Exactly; |
22 using testing::Invoke; | 22 using testing::Invoke; |
23 using testing::Return; | 23 using testing::Return; |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
467 kAudioSources, MixerAudioSource::AudioFrameInfo::kNormal); | 467 kAudioSources, MixerAudioSource::AudioFrameInfo::kNormal); |
468 frame_info[0] = MixerAudioSource::AudioFrameInfo::kMuted; | 468 frame_info[0] = MixerAudioSource::AudioFrameInfo::kMuted; |
469 std::fill(frames[0].data_, frames[0].data_ + kDefaultSampleRateHz / 100, | 469 std::fill(frames[0].data_, frames[0].data_ + kDefaultSampleRateHz / 100, |
470 std::numeric_limits<int16_t>::max()); | 470 std::numeric_limits<int16_t>::max()); |
471 std::vector<bool> expected_status(kAudioSources, true); | 471 std::vector<bool> expected_status(kAudioSources, true); |
472 expected_status[0] = false; | 472 expected_status[0] = false; |
473 | 473 |
474 MixAndCompare(frames, frame_info, expected_status); | 474 MixAndCompare(frames, frame_info, expected_status); |
475 } | 475 } |
476 } // namespace webrtc | 476 } // namespace webrtc |
OLD | NEW |