| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 oss << " }"; | 45 oss << " }"; |
| 46 return oss.str(); | 46 return oss.str(); |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace | 49 } // namespace |
| 50 | 50 |
| 51 std::string RTCStats::ToString() const { | 51 std::string RTCStats::ToString() const { |
| 52 std::ostringstream oss; | 52 std::ostringstream oss; |
| 53 oss << type() << " {\n id: \"" << id_ << "\"\n timestamp: " | 53 oss << type() << " {\n id: \"" << id_ << "\"\n timestamp: " |
| 54 << timestamp_ << '\n'; | 54 << timestamp_us_ << '\n'; |
| 55 for (const RTCStatsMemberInterface* member : Members()) { | 55 for (const RTCStatsMemberInterface* member : Members()) { |
| 56 oss << " " << member->name() << ": "; | 56 oss << " " << member->name() << ": "; |
| 57 if (member->is_defined()) { | 57 if (member->is_defined()) { |
| 58 if (member->is_string()) | 58 if (member->is_string()) |
| 59 oss << '"' << member->ValueToString() << "\"\n"; | 59 oss << '"' << member->ValueToString() << "\"\n"; |
| 60 else | 60 else |
| 61 oss << member->ValueToString() << '\n'; | 61 oss << member->ValueToString() << '\n'; |
| 62 } else { | 62 } else { |
| 63 oss << "undefined\n"; | 63 oss << "undefined\n"; |
| 64 } | 64 } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 std::vector<double>, kSequenceDouble, true, false, | 123 std::vector<double>, kSequenceDouble, true, false, |
| 124 VectorToString(value_)); | 124 VectorToString(value_)); |
| 125 WEBRTC_DEFINE_RTCSTATSMEMBER( | 125 WEBRTC_DEFINE_RTCSTATSMEMBER( |
| 126 std::vector<const char*>, kSequenceStaticString, true, false, | 126 std::vector<const char*>, kSequenceStaticString, true, false, |
| 127 VectorOfStringsToString(value_)); | 127 VectorOfStringsToString(value_)); |
| 128 WEBRTC_DEFINE_RTCSTATSMEMBER( | 128 WEBRTC_DEFINE_RTCSTATSMEMBER( |
| 129 std::vector<std::string>, kSequenceString, true, false, | 129 std::vector<std::string>, kSequenceString, true, false, |
| 130 VectorOfStringsToString(value_)); | 130 VectorOfStringsToString(value_)); |
| 131 | 131 |
| 132 } // namespace webrtc | 132 } // namespace webrtc |
| OLD | NEW |