xref: /aosp_15_r20/external/webrtc/stats/test/rtc_test_stats.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
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 
11 #ifndef STATS_TEST_RTC_TEST_STATS_H_
12 #define STATS_TEST_RTC_TEST_STATS_H_
13 
14 #include <cstdint>
15 #include <map>
16 #include <string>
17 #include <vector>
18 
19 #include "api/stats/rtc_stats.h"
20 #include "rtc_base/system/rtc_export.h"
21 
22 namespace webrtc {
23 
24 class RTC_EXPORT RTCTestStats : public RTCStats {
25  public:
26   WEBRTC_RTCSTATS_DECL();
27 
28   RTCTestStats(const std::string& id, int64_t timestamp_us);
29   RTCTestStats(const RTCTestStats& other);
30   ~RTCTestStats() override;
31 
32   RTCStatsMember<bool> m_bool;
33   RTCStatsMember<int32_t> m_int32;
34   RTCStatsMember<uint32_t> m_uint32;
35   RTCStatsMember<int64_t> m_int64;
36   RTCStatsMember<uint64_t> m_uint64;
37   RTCStatsMember<double> m_double;
38   RTCStatsMember<std::string> m_string;
39   RTCStatsMember<std::vector<bool>> m_sequence_bool;
40   RTCStatsMember<std::vector<int32_t>> m_sequence_int32;
41   RTCStatsMember<std::vector<uint32_t>> m_sequence_uint32;
42   RTCStatsMember<std::vector<int64_t>> m_sequence_int64;
43   RTCStatsMember<std::vector<uint64_t>> m_sequence_uint64;
44   RTCStatsMember<std::vector<double>> m_sequence_double;
45   RTCStatsMember<std::vector<std::string>> m_sequence_string;
46   RTCStatsMember<std::map<std::string, uint64_t>> m_map_string_uint64;
47   RTCStatsMember<std::map<std::string, double>> m_map_string_double;
48 };
49 
50 }  // namespace webrtc
51 
52 #endif  // STATS_TEST_RTC_TEST_STATS_H_
53