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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/stats/test/rtcteststats.h" 11 #include "webrtc/stats/test/rtcteststats.h"
12 12
13 namespace webrtc { 13 namespace webrtc {
14 14
15 const char RTCTestStats::kType[] = "test-stats"; 15 WEBRTC_RTCSTATS_IMPL(RTCTestStats, RTCStats, "test-stats",
16 &m_int32,
17 &m_uint32,
18 &m_int64,
19 &m_uint64,
20 &m_double,
21 &m_string,
22 &m_sequence_int32,
23 &m_sequence_uint32,
24 &m_sequence_int64,
25 &m_sequence_uint64,
26 &m_sequence_double,
27 &m_sequence_string);
16 28
17 RTCTestStats::RTCTestStats(const std::string& id, int64_t timestamp_us) 29 RTCTestStats::RTCTestStats(const std::string& id, int64_t timestamp_us)
18 : RTCStats(id, timestamp_us), 30 : RTCStats(id, timestamp_us),
19 m_int32("mInt32"), 31 m_int32("mInt32"),
20 m_uint32("mUint32"), 32 m_uint32("mUint32"),
21 m_int64("mInt64"), 33 m_int64("mInt64"),
22 m_uint64("mUint64"), 34 m_uint64("mUint64"),
23 m_double("mDouble"), 35 m_double("mDouble"),
24 m_string("mString"), 36 m_string("mString"),
25 m_sequence_int32("mSequenceInt32"), 37 m_sequence_int32("mSequenceInt32"),
26 m_sequence_uint32("mSequenceUint32"), 38 m_sequence_uint32("mSequenceUint32"),
27 m_sequence_int64("mSequenceInt64"), 39 m_sequence_int64("mSequenceInt64"),
28 m_sequence_uint64("mSequenceUint64"), 40 m_sequence_uint64("mSequenceUint64"),
29 m_sequence_double("mSequenceDouble"), 41 m_sequence_double("mSequenceDouble"),
30 m_sequence_string("mSequenceString") { 42 m_sequence_string("mSequenceString") {
31 } 43 }
32 44
45 RTCTestStats::RTCTestStats(
46 const RTCTestStats& other)
47 : RTCStats(other.id(), other.timestamp_us()),
48 m_int32(other.m_int32),
49 m_uint32(other.m_uint32),
50 m_int64(other.m_int64),
51 m_uint64(other.m_uint64),
52 m_double(other.m_double),
53 m_string(other.m_string),
54 m_sequence_int32(other.m_sequence_int32),
55 m_sequence_uint32(other.m_sequence_uint32),
56 m_sequence_int64(other.m_sequence_int64),
57 m_sequence_uint64(other.m_sequence_uint64),
58 m_sequence_double(other.m_sequence_double),
59 m_sequence_string(other.m_sequence_string) {
60 }
61
62 RTCTestStats::~RTCTestStats() {
63 }
64
33 } // namespace webrtc 65 } // namespace webrtc
OLDNEW
« 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