blob: ff1a06f97c4a3bda1f9a8bc837359828671ba7b6 [file] [log] [blame]
hbos27e177c2016-09-19 13:05:561/*
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 Anton10542f22019-01-11 17:11:0011#ifndef STATS_TEST_RTC_TEST_STATS_H_
12#define STATS_TEST_RTC_TEST_STATS_H_
hbos27e177c2016-09-19 13:05:5613
Yves Gerey3e707812018-11-28 15:47:4914#include <cstdint>
Byoungchan Lee0a52ede2021-05-21 23:41:0215#include <map>
hbos27e177c2016-09-19 13:05:5616#include <string>
17#include <vector>
18
Henrik Boströmac58a332024-01-22 12:51:3619#include "absl/types/optional.h"
Steve Anton10542f22019-01-11 17:11:0020#include "api/stats/rtc_stats.h"
Mirko Bonadei977b46a2018-10-24 14:22:0421#include "rtc_base/system/rtc_export.h"
hbos27e177c2016-09-19 13:05:5622
23namespace webrtc {
24
Mirko Bonadei977b46a2018-10-24 14:22:0425class RTC_EXPORT RTCTestStats : public RTCStats {
hbos27e177c2016-09-19 13:05:5626 public:
hbosfc5e0502016-10-06 09:06:1027 WEBRTC_RTCSTATS_DECL();
Philipp Hanckeb81823a2023-01-04 14:17:4228 RTCTestStats(const std::string& id, Timestamp timestamp);
hbosfc5e0502016-10-06 09:06:1029 ~RTCTestStats() override;
hbos27e177c2016-09-19 13:05:5630
Henrik Boströmac58a332024-01-22 12:51:3631 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;
hbos27e177c2016-09-19 13:05:5647};
48
49} // namespace webrtc
50
Steve Anton10542f22019-01-11 17:11:0051#endif // STATS_TEST_RTC_TEST_STATS_H_