hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 11 | #ifndef STATS_TEST_RTC_TEST_STATS_H_ |
| 12 | #define STATS_TEST_RTC_TEST_STATS_H_ |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 13 | |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 14 | #include <cstdint> |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 15 | #include <string> |
| 16 | #include <vector> |
| 17 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 18 | #include "api/stats/rtc_stats.h" |
Mirko Bonadei | 977b46a | 2018-10-24 16:22:04 +0200 | [diff] [blame] | 19 | #include "rtc_base/system/rtc_export.h" |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 20 | |
| 21 | namespace webrtc { |
| 22 | |
Mirko Bonadei | 977b46a | 2018-10-24 16:22:04 +0200 | [diff] [blame] | 23 | class RTC_EXPORT RTCTestStats : public RTCStats { |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 24 | public: |
hbos | fc5e050 | 2016-10-06 02:06:10 -0700 | [diff] [blame] | 25 | WEBRTC_RTCSTATS_DECL(); |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 26 | |
hbos | fc5e050 | 2016-10-06 02:06:10 -0700 | [diff] [blame] | 27 | RTCTestStats(const std::string& id, int64_t timestamp_us); |
| 28 | RTCTestStats(const RTCTestStats& other); |
| 29 | ~RTCTestStats() override; |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 30 | |
hbos | b20f387 | 2016-10-04 14:37:11 -0700 | [diff] [blame] | 31 | RTCStatsMember<bool> m_bool; |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 32 | RTCStatsMember<int32_t> m_int32; |
| 33 | RTCStatsMember<uint32_t> m_uint32; |
| 34 | RTCStatsMember<int64_t> m_int64; |
| 35 | RTCStatsMember<uint64_t> m_uint64; |
| 36 | RTCStatsMember<double> m_double; |
| 37 | RTCStatsMember<std::string> m_string; |
hbos | b20f387 | 2016-10-04 14:37:11 -0700 | [diff] [blame] | 38 | RTCStatsMember<std::vector<bool>> m_sequence_bool; |
hbos | 27e177c | 2016-09-19 06:05:56 -0700 | [diff] [blame] | 39 | RTCStatsMember<std::vector<int32_t>> m_sequence_int32; |
| 40 | RTCStatsMember<std::vector<uint32_t>> m_sequence_uint32; |
| 41 | RTCStatsMember<std::vector<int64_t>> m_sequence_int64; |
| 42 | RTCStatsMember<std::vector<uint64_t>> m_sequence_uint64; |
| 43 | RTCStatsMember<std::vector<double>> m_sequence_double; |
| 44 | RTCStatsMember<std::vector<std::string>> m_sequence_string; |
| 45 | }; |
| 46 | |
| 47 | } // namespace webrtc |
| 48 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 49 | #endif // STATS_TEST_RTC_TEST_STATS_H_ |