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

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

Issue 2373503002: rtc_stats: Update code to remove chromium style warnings suppression. (Closed)
Patch Set: Addressed comments and rebase with master Created 4 years, 2 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
« no previous file with comments | « 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 a4bff77564179f502c56db9bdb6c93e8b767b31e..f60bd0f8f058e4e88395aa021abe04ce688e5391 100644
--- a/webrtc/stats/test/rtcteststats.cc
+++ b/webrtc/stats/test/rtcteststats.cc
@@ -12,7 +12,21 @@
namespace webrtc {
-const char RTCTestStats::kType[] = "test-stats";
+WEBRTC_RTCSTATS_IMPL(RTCTestStats, RTCStats, "test-stats",
+ &m_bool,
+ &m_int32,
+ &m_uint32,
+ &m_int64,
+ &m_uint64,
+ &m_double,
+ &m_string,
+ &m_sequence_bool,
+ &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),
@@ -32,4 +46,25 @@ 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_bool(other.m_bool),
+ 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_bool(other.m_sequence_bool),
+ 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
« no previous file with comments | « webrtc/stats/test/rtcteststats.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698