OLD | NEW |
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/aec_dump/write_to_file_task.h" | 11 #include "webrtc/modules/audio_processing/aec_dump/write_to_file_task.h" |
12 | 12 |
13 #include "webrtc/rtc_base/protobuf_utils.h" | 13 #include "webrtc/base/protobuf_utils.h" |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 | 16 |
17 WriteToFileTask::WriteToFileTask(webrtc::FileWrapper* debug_file, | 17 WriteToFileTask::WriteToFileTask(webrtc::FileWrapper* debug_file, |
18 int64_t* num_bytes_left_for_log) | 18 int64_t* num_bytes_left_for_log) |
19 : debug_file_(debug_file), | 19 : debug_file_(debug_file), |
20 num_bytes_left_for_log_(num_bytes_left_for_log) {} | 20 num_bytes_left_for_log_(num_bytes_left_for_log) {} |
21 | 21 |
22 WriteToFileTask::~WriteToFileTask() = default; | 22 WriteToFileTask::~WriteToFileTask() = default; |
23 | 23 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 if (!debug_file_->Write(&event_byte_size, sizeof(int32_t))) { | 59 if (!debug_file_->Write(&event_byte_size, sizeof(int32_t))) { |
60 RTC_NOTREACHED(); | 60 RTC_NOTREACHED(); |
61 } | 61 } |
62 if (!debug_file_->Write(event_string.data(), event_string.length())) { | 62 if (!debug_file_->Write(event_string.data(), event_string.length())) { |
63 RTC_NOTREACHED(); | 63 RTC_NOTREACHED(); |
64 } | 64 } |
65 return true; // Delete task from queue at once. | 65 return true; // Delete task from queue at once. |
66 } | 66 } |
67 | 67 |
68 } // namespace webrtc | 68 } // namespace webrtc |
OLD | NEW |