hbos | 27e177c | 2016-09-19 13:05:56 | [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 17:11:00 | [diff] [blame] | 11 | #ifndef STATS_TEST_RTC_TEST_STATS_H_ |
| 12 | #define STATS_TEST_RTC_TEST_STATS_H_ |
hbos | 27e177c | 2016-09-19 13:05:56 | [diff] [blame] | 13 | |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 14 | #include <cstdint> |
Byoungchan Lee | 0a52ede | 2021-05-21 23:41:02 | [diff] [blame] | 15 | #include <map> |
hbos | 27e177c | 2016-09-19 13:05:56 | [diff] [blame] | 16 | #include <string> |
| 17 | #include <vector> |
| 18 | |
Henrik Boström | ac58a33 | 2024-01-22 12:51:36 | [diff] [blame] | 19 | #include "absl/types/optional.h" |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 20 | #include "api/stats/rtc_stats.h" |
Mirko Bonadei | 977b46a | 2018-10-24 14:22:04 | [diff] [blame] | 21 | #include "rtc_base/system/rtc_export.h" |
hbos | 27e177c | 2016-09-19 13:05:56 | [diff] [blame] | 22 | |
| 23 | namespace webrtc { |
| 24 | |
Mirko Bonadei | 977b46a | 2018-10-24 14:22:04 | [diff] [blame] | 25 | class RTC_EXPORT RTCTestStats : public RTCStats { |
hbos | 27e177c | 2016-09-19 13:05:56 | [diff] [blame] | 26 | public: |
hbos | fc5e050 | 2016-10-06 09:06:10 | [diff] [blame] | 27 | WEBRTC_RTCSTATS_DECL(); |
Philipp Hancke | b81823a | 2023-01-04 14:17:42 | [diff] [blame] | 28 | RTCTestStats(const std::string& id, Timestamp timestamp); |
hbos | fc5e050 | 2016-10-06 09:06:10 | [diff] [blame] | 29 | ~RTCTestStats() override; |
hbos | 27e177c | 2016-09-19 13:05:56 | [diff] [blame] | 30 | |
Henrik Boström | ac58a33 | 2024-01-22 12:51:36 | [diff] [blame] | 31 | absl::optional<bool> m_bool; |
| 32 | absl::optional<int32_t> m_int32; |
| 33 | absl::optional<uint32_t> m_uint32; |
| 34 | absl::optional<int64_t> m_int64; |
| 35 | absl::optional<uint64_t> m_uint64; |
| 36 | absl::optional<double> m_double; |
| 37 | absl::optional<std::string> m_string; |
| 38 | absl::optional<std::vector<bool>> m_sequence_bool; |
| 39 | absl::optional<std::vector<int32_t>> m_sequence_int32; |
| 40 | absl::optional<std::vector<uint32_t>> m_sequence_uint32; |
| 41 | absl::optional<std::vector<int64_t>> m_sequence_int64; |
| 42 | absl::optional<std::vector<uint64_t>> m_sequence_uint64; |
| 43 | absl::optional<std::vector<double>> m_sequence_double; |
| 44 | absl::optional<std::vector<std::string>> m_sequence_string; |
| 45 | absl::optional<std::map<std::string, uint64_t>> m_map_string_uint64; |
| 46 | absl::optional<std::map<std::string, double>> m_map_string_double; |
hbos | 27e177c | 2016-09-19 13:05:56 | [diff] [blame] | 47 | }; |
| 48 | |
| 49 | } // namespace webrtc |
| 50 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 51 | #endif // STATS_TEST_RTC_TEST_STATS_H_ |