blob: 1db32c25c10a103f4a6c6ed49e99eb343a0ca111 [file] [log] [blame]
hbos27e177c2016-09-19 06:05:56 -07001/*
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 09:11:00 -080011#ifndef STATS_TEST_RTC_TEST_STATS_H_
12#define STATS_TEST_RTC_TEST_STATS_H_
hbos27e177c2016-09-19 06:05:56 -070013
Yves Gerey3e707812018-11-28 16:47:49 +010014#include <cstdint>
hbos27e177c2016-09-19 06:05:56 -070015#include <string>
16#include <vector>
17
Steve Anton10542f22019-01-11 09:11:00 -080018#include "api/stats/rtc_stats.h"
Mirko Bonadei977b46a2018-10-24 16:22:04 +020019#include "rtc_base/system/rtc_export.h"
hbos27e177c2016-09-19 06:05:56 -070020
21namespace webrtc {
22
Mirko Bonadei977b46a2018-10-24 16:22:04 +020023class RTC_EXPORT RTCTestStats : public RTCStats {
hbos27e177c2016-09-19 06:05:56 -070024 public:
hbosfc5e0502016-10-06 02:06:10 -070025 WEBRTC_RTCSTATS_DECL();
hbos27e177c2016-09-19 06:05:56 -070026
hbosfc5e0502016-10-06 02:06:10 -070027 RTCTestStats(const std::string& id, int64_t timestamp_us);
28 RTCTestStats(const RTCTestStats& other);
29 ~RTCTestStats() override;
hbos27e177c2016-09-19 06:05:56 -070030
hbosb20f3872016-10-04 14:37:11 -070031 RTCStatsMember<bool> m_bool;
hbos27e177c2016-09-19 06:05:56 -070032 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;
hbosb20f3872016-10-04 14:37:11 -070038 RTCStatsMember<std::vector<bool>> m_sequence_bool;
hbos27e177c2016-09-19 06:05:56 -070039 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 Anton10542f22019-01-11 09:11:00 -080049#endif // STATS_TEST_RTC_TEST_STATS_H_