Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: webrtc/stats/test/rtcteststats.cc

Issue 2373503002: rtc_stats: Update code to remove chromium style warnings suppression. (Closed)
Patch Set: Updated comment Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« webrtc/api/stats/rtcstats.h ('K') | « webrtc/stats/test/rtcteststats.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/stats/test/rtcteststats.cc
diff --git a/webrtc/stats/test/rtcteststats.cc b/webrtc/stats/test/rtcteststats.cc
index c317294332e285c5b3cfe642769438cd5cbcd867..d91358a651755b07f045f1afe740d57da29feab4 100644
--- a/webrtc/stats/test/rtcteststats.cc
+++ b/webrtc/stats/test/rtcteststats.cc
@@ -12,7 +12,19 @@
namespace webrtc {
-const char RTCTestStats::kType[] = "test-stats";
+WEBRTC_RTCSTATS_IMPL(RTCTestStats, RTCStats, "test-stats",
+ &m_int32,
+ &m_uint32,
+ &m_int64,
+ &m_uint64,
+ &m_double,
+ &m_string,
+ &m_sequence_int32,
+ &m_sequence_uint32,
+ &m_sequence_int64,
+ &m_sequence_uint64,
+ &m_sequence_double,
+ &m_sequence_string);
RTCTestStats::RTCTestStats(const std::string& id, int64_t timestamp_us)
: RTCStats(id, timestamp_us),
@@ -30,4 +42,24 @@ RTCTestStats::RTCTestStats(const std::string& id, int64_t timestamp_us)
m_sequence_string("mSequenceString") {
}
+RTCTestStats::RTCTestStats(
+ const RTCTestStats& other)
+ : RTCStats(other.id(), other.timestamp_us()),
+ m_int32(other.m_int32),
+ m_uint32(other.m_uint32),
+ m_int64(other.m_int64),
+ m_uint64(other.m_uint64),
+ m_double(other.m_double),
+ m_string(other.m_string),
+ m_sequence_int32(other.m_sequence_int32),
+ m_sequence_uint32(other.m_sequence_uint32),
+ m_sequence_int64(other.m_sequence_int64),
+ m_sequence_uint64(other.m_sequence_uint64),
+ m_sequence_double(other.m_sequence_double),
+ m_sequence_string(other.m_sequence_string) {
+}
+
+RTCTestStats::~RTCTestStats() {
+}
+
} // namespace webrtc
« webrtc/api/stats/rtcstats.h ('K') | « webrtc/stats/test/rtcteststats.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698