| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "webrtc/base/checks.h" | |
| 14 #include "webrtc/modules/audio_processing/test/test_utils.h" | 13 #include "webrtc/modules/audio_processing/test/test_utils.h" |
| 14 #include "webrtc/rtc_base/checks.h" |
| 15 | 15 |
| 16 namespace webrtc { | 16 namespace webrtc { |
| 17 | 17 |
| 18 RawFile::RawFile(const std::string& filename) | 18 RawFile::RawFile(const std::string& filename) |
| 19 : file_handle_(fopen(filename.c_str(), "wb")) {} | 19 : file_handle_(fopen(filename.c_str(), "wb")) {} |
| 20 | 20 |
| 21 RawFile::~RawFile() { | 21 RawFile::~RawFile() { |
| 22 fclose(file_handle_); | 22 fclose(file_handle_); |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 std::vector<Point> ParseArrayGeometry(const std::string& mic_positions, | 150 std::vector<Point> ParseArrayGeometry(const std::string& mic_positions, |
| 151 size_t num_mics) { | 151 size_t num_mics) { |
| 152 std::vector<Point> result = ParseArrayGeometry(mic_positions); | 152 std::vector<Point> result = ParseArrayGeometry(mic_positions); |
| 153 RTC_CHECK_EQ(result.size(), num_mics) | 153 RTC_CHECK_EQ(result.size(), num_mics) |
| 154 << "Could not parse mic_positions or incorrect number of points."; | 154 << "Could not parse mic_positions or incorrect number of points."; |
| 155 return result; | 155 return result; |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace webrtc | 158 } // namespace webrtc |
| OLD | NEW |