Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1434)

Side by Side Diff: webrtc/modules/audio_processing/aec3/render_delay_buffer_unittest.cc

Issue 3007763002: Move array_view.h to webrtc/api/ (Closed)
Patch Set: rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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 "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" 11 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h"
12 12
13 #include <memory> 13 #include <memory>
14 #include <sstream> 14 #include <sstream>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/api/array_view.h"
18 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" 19 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
19 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" 20 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h"
20 #include "webrtc/rtc_base/array_view.h"
21 #include "webrtc/rtc_base/random.h" 21 #include "webrtc/rtc_base/random.h"
22 #include "webrtc/test/gtest.h" 22 #include "webrtc/test/gtest.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 namespace { 25 namespace {
26 26
27 std::string ProduceDebugText(int sample_rate_hz) { 27 std::string ProduceDebugText(int sample_rate_hz) {
28 std::ostringstream ss; 28 std::ostringstream ss;
29 ss << "Sample rate: " << sample_rate_hz; 29 ss << "Sample rate: " << sample_rate_hz;
30 return ss.str(); 30 return ss.str();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 RenderDelayBuffer::Create(3)); 99 RenderDelayBuffer::Create(3));
100 std::vector<std::vector<float>> block_to_insert( 100 std::vector<std::vector<float>> block_to_insert(
101 NumBandsForRate(rate), std::vector<float>(kBlockSize - 1, 0.f)); 101 NumBandsForRate(rate), std::vector<float>(kBlockSize - 1, 0.f));
102 EXPECT_DEATH(delay_buffer->Insert(block_to_insert), ""); 102 EXPECT_DEATH(delay_buffer->Insert(block_to_insert), "");
103 } 103 }
104 } 104 }
105 105
106 #endif 106 #endif
107 107
108 } // namespace webrtc 108 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698