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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 template<> \ | 86 template<> \ |
87 bool RTCStatsMember<T>::is_sequence() const { return is_seq; } \ | 87 bool RTCStatsMember<T>::is_sequence() const { return is_seq; } \ |
88 template<> \ | 88 template<> \ |
89 bool RTCStatsMember<T>::is_string() const { return is_str; } \ | 89 bool RTCStatsMember<T>::is_string() const { return is_str; } \ |
90 template<> \ | 90 template<> \ |
91 std::string RTCStatsMember<T>::ValueToString() const { \ | 91 std::string RTCStatsMember<T>::ValueToString() const { \ |
92 RTC_DCHECK(is_defined_); \ | 92 RTC_DCHECK(is_defined_); \ |
93 return to_str; \ | 93 return to_str; \ |
94 } | 94 } |
95 | 95 |
| 96 WEBRTC_DEFINE_RTCSTATSMEMBER(bool, kBool, false, false, |
| 97 rtc::ToString(value_)); |
96 WEBRTC_DEFINE_RTCSTATSMEMBER(int32_t, kInt32, false, false, | 98 WEBRTC_DEFINE_RTCSTATSMEMBER(int32_t, kInt32, false, false, |
97 rtc::ToString(value_)); | 99 rtc::ToString(value_)); |
98 WEBRTC_DEFINE_RTCSTATSMEMBER(uint32_t, kUint32, false, false, | 100 WEBRTC_DEFINE_RTCSTATSMEMBER(uint32_t, kUint32, false, false, |
99 rtc::ToString(value_)); | 101 rtc::ToString(value_)); |
100 WEBRTC_DEFINE_RTCSTATSMEMBER(int64_t, kInt64, false, false, | 102 WEBRTC_DEFINE_RTCSTATSMEMBER(int64_t, kInt64, false, false, |
101 rtc::ToString(value_)); | 103 rtc::ToString(value_)); |
102 WEBRTC_DEFINE_RTCSTATSMEMBER(uint64_t, kUint64, false, false, | 104 WEBRTC_DEFINE_RTCSTATSMEMBER(uint64_t, kUint64, false, false, |
103 rtc::ToString(value_)); | 105 rtc::ToString(value_)); |
104 WEBRTC_DEFINE_RTCSTATSMEMBER(double, kDouble, false, false, | 106 WEBRTC_DEFINE_RTCSTATSMEMBER(double, kDouble, false, false, |
105 rtc::ToString(value_)); | 107 rtc::ToString(value_)); |
106 WEBRTC_DEFINE_RTCSTATSMEMBER(std::string, kString, false, true, | 108 WEBRTC_DEFINE_RTCSTATSMEMBER(std::string, kString, false, true, |
107 value_); | 109 value_); |
108 WEBRTC_DEFINE_RTCSTATSMEMBER( | 110 WEBRTC_DEFINE_RTCSTATSMEMBER( |
| 111 std::vector<bool>, kSequenceBool, true, false, |
| 112 VectorToString(value_)); |
| 113 WEBRTC_DEFINE_RTCSTATSMEMBER( |
109 std::vector<int32_t>, kSequenceInt32, true, false, | 114 std::vector<int32_t>, kSequenceInt32, true, false, |
110 VectorToString(value_)); | 115 VectorToString(value_)); |
111 WEBRTC_DEFINE_RTCSTATSMEMBER( | 116 WEBRTC_DEFINE_RTCSTATSMEMBER( |
112 std::vector<uint32_t>, kSequenceUint32, true, false, | 117 std::vector<uint32_t>, kSequenceUint32, true, false, |
113 VectorToString(value_)); | 118 VectorToString(value_)); |
114 WEBRTC_DEFINE_RTCSTATSMEMBER( | 119 WEBRTC_DEFINE_RTCSTATSMEMBER( |
115 std::vector<int64_t>, kSequenceInt64, true, false, | 120 std::vector<int64_t>, kSequenceInt64, true, false, |
116 VectorToString(value_)); | 121 VectorToString(value_)); |
117 WEBRTC_DEFINE_RTCSTATSMEMBER( | 122 WEBRTC_DEFINE_RTCSTATSMEMBER( |
118 std::vector<uint64_t>, kSequenceUint64, true, false, | 123 std::vector<uint64_t>, kSequenceUint64, true, false, |
119 VectorToString(value_)); | 124 VectorToString(value_)); |
120 WEBRTC_DEFINE_RTCSTATSMEMBER( | 125 WEBRTC_DEFINE_RTCSTATSMEMBER( |
121 std::vector<double>, kSequenceDouble, true, false, | 126 std::vector<double>, kSequenceDouble, true, false, |
122 VectorToString(value_)); | 127 VectorToString(value_)); |
123 WEBRTC_DEFINE_RTCSTATSMEMBER( | 128 WEBRTC_DEFINE_RTCSTATSMEMBER( |
124 std::vector<std::string>, kSequenceString, true, false, | 129 std::vector<std::string>, kSequenceString, true, false, |
125 VectorOfStringsToString(value_)); | 130 VectorOfStringsToString(value_)); |
126 | 131 |
127 } // namespace webrtc | 132 } // namespace webrtc |
OLD | NEW |