| 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 |
| 11 #ifndef WEBRTC_STATS_TEST_RTCTESTSTATS_H_ | 11 #ifndef WEBRTC_STATS_TEST_RTCTESTSTATS_H_ |
| 12 #define WEBRTC_STATS_TEST_RTCTESTSTATS_H_ | 12 #define WEBRTC_STATS_TEST_RTCTESTSTATS_H_ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "webrtc/api/stats/rtcstats.h" | 17 #include "webrtc/api/stats/rtcstats.h" |
| 18 | 18 |
| 19 namespace webrtc { | 19 namespace webrtc { |
| 20 | 20 |
| 21 class RTCTestStats : public RTCStats { | 21 class RTCTestStats : public RTCStats { |
| 22 public: | 22 public: |
| 23 WEBRTC_RTCSTATS_DECL(); |
| 24 |
| 23 RTCTestStats(const std::string& id, int64_t timestamp_us); | 25 RTCTestStats(const std::string& id, int64_t timestamp_us); |
| 24 | 26 RTCTestStats(const RTCTestStats& other); |
| 25 WEBRTC_RTCSTATS_IMPL(RTCStats, RTCTestStats, | 27 ~RTCTestStats() override; |
| 26 &m_bool, | |
| 27 &m_int32, | |
| 28 &m_uint32, | |
| 29 &m_int64, | |
| 30 &m_uint64, | |
| 31 &m_double, | |
| 32 &m_string, | |
| 33 &m_sequence_bool, | |
| 34 &m_sequence_int32, | |
| 35 &m_sequence_uint32, | |
| 36 &m_sequence_int64, | |
| 37 &m_sequence_uint64, | |
| 38 &m_sequence_double, | |
| 39 &m_sequence_string); | |
| 40 | 28 |
| 41 RTCStatsMember<bool> m_bool; | 29 RTCStatsMember<bool> m_bool; |
| 42 RTCStatsMember<int32_t> m_int32; | 30 RTCStatsMember<int32_t> m_int32; |
| 43 RTCStatsMember<uint32_t> m_uint32; | 31 RTCStatsMember<uint32_t> m_uint32; |
| 44 RTCStatsMember<int64_t> m_int64; | 32 RTCStatsMember<int64_t> m_int64; |
| 45 RTCStatsMember<uint64_t> m_uint64; | 33 RTCStatsMember<uint64_t> m_uint64; |
| 46 RTCStatsMember<double> m_double; | 34 RTCStatsMember<double> m_double; |
| 47 RTCStatsMember<std::string> m_string; | 35 RTCStatsMember<std::string> m_string; |
| 48 RTCStatsMember<std::vector<bool>> m_sequence_bool; | 36 RTCStatsMember<std::vector<bool>> m_sequence_bool; |
| 49 RTCStatsMember<std::vector<int32_t>> m_sequence_int32; | 37 RTCStatsMember<std::vector<int32_t>> m_sequence_int32; |
| 50 RTCStatsMember<std::vector<uint32_t>> m_sequence_uint32; | 38 RTCStatsMember<std::vector<uint32_t>> m_sequence_uint32; |
| 51 RTCStatsMember<std::vector<int64_t>> m_sequence_int64; | 39 RTCStatsMember<std::vector<int64_t>> m_sequence_int64; |
| 52 RTCStatsMember<std::vector<uint64_t>> m_sequence_uint64; | 40 RTCStatsMember<std::vector<uint64_t>> m_sequence_uint64; |
| 53 RTCStatsMember<std::vector<double>> m_sequence_double; | 41 RTCStatsMember<std::vector<double>> m_sequence_double; |
| 54 RTCStatsMember<std::vector<std::string>> m_sequence_string; | 42 RTCStatsMember<std::vector<std::string>> m_sequence_string; |
| 55 }; | 43 }; |
| 56 | 44 |
| 57 } // namespace webrtc | 45 } // namespace webrtc |
| 58 | 46 |
| 59 #endif // WEBRTC_STATS_TEST_RTCTESTSTATS_H_ | 47 #endif // WEBRTC_STATS_TEST_RTCTESTSTATS_H_ |
| OLD | NEW |