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 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
128 } | 128 } |
129 | 129 |
130 void AudioNetworkAdaptorImpl::StartDebugDump(FILE* file_handle) { | 130 void AudioNetworkAdaptorImpl::StartDebugDump(FILE* file_handle) { |
131 debug_dump_writer_ = DebugDumpWriter::Create(file_handle); | 131 debug_dump_writer_ = DebugDumpWriter::Create(file_handle); |
132 } | 132 } |
133 | 133 |
134 void AudioNetworkAdaptorImpl::StopDebugDump() { | 134 void AudioNetworkAdaptorImpl::StopDebugDump() { |
135 debug_dump_writer_.reset(nullptr); | 135 debug_dump_writer_.reset(nullptr); |
136 } | 136 } |
137 | 137 |
138 ANAStats AudioNetworkAdaptorImpl::GetStats() const { | |
139 // TODO(ivoc): Actually implement the stat. | |
hbos
2017/09/04 08:49:54
Link to a bug?
ivoc
2017/09/04 15:48:02
Added.
| |
140 return ANAStats(); | |
141 } | |
hbos
2017/09/04 08:49:54
Can you add a audio_network_adapter_impl_unittest.
ivoc
2017/09/04 15:48:03
Done.
| |
142 | |
138 void AudioNetworkAdaptorImpl::DumpNetworkMetrics() { | 143 void AudioNetworkAdaptorImpl::DumpNetworkMetrics() { |
139 if (debug_dump_writer_) | 144 if (debug_dump_writer_) |
140 debug_dump_writer_->DumpNetworkMetrics(last_metrics_, rtc::TimeMillis()); | 145 debug_dump_writer_->DumpNetworkMetrics(last_metrics_, rtc::TimeMillis()); |
141 } | 146 } |
142 | 147 |
143 void AudioNetworkAdaptorImpl::UpdateNetworkMetrics( | 148 void AudioNetworkAdaptorImpl::UpdateNetworkMetrics( |
144 const Controller::NetworkMetrics& network_metrics) { | 149 const Controller::NetworkMetrics& network_metrics) { |
145 for (auto& controller : controller_manager_->GetControllers()) | 150 for (auto& controller : controller_manager_->GetControllers()) |
146 controller->UpdateNetworkMetrics(network_metrics); | 151 controller->UpdateNetworkMetrics(network_metrics); |
147 } | 152 } |
148 | 153 |
149 } // namespace webrtc | 154 } // namespace webrtc |
OLD | NEW |