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

Unified Diff: webrtc/stats/rtcstatsreport_unittest.cc

Issue 2465223002: Revert of RTCOutboundRTPStreamStats added. (Closed)
Patch Set: Created 4 years, 1 month 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/rtcstatsreport.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/stats/rtcstatsreport_unittest.cc
diff --git a/webrtc/stats/rtcstatsreport_unittest.cc b/webrtc/stats/rtcstatsreport_unittest.cc
index 442adbe163d82a859895194188910f721db32ea3..3bfbd44cba626b6c6accb1a16b598ae3209d0930 100644
--- a/webrtc/stats/rtcstatsreport_unittest.cc
+++ b/webrtc/stats/rtcstatsreport_unittest.cc
@@ -59,8 +59,7 @@
&string);
TEST(RTCStatsReport, AddAndGetStats) {
- rtc::scoped_refptr<RTCStatsReport> report = RTCStatsReport::Create(1337);
- EXPECT_EQ(report->timestamp_us(), 1337u);
+ rtc::scoped_refptr<RTCStatsReport> report = RTCStatsReport::Create();
EXPECT_EQ(report->size(), static_cast<size_t>(0));
report->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats1("a0", 1)));
report->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats1("a1", 2)));
@@ -93,8 +92,7 @@
}
TEST(RTCStatsReport, StatsOrder) {
- rtc::scoped_refptr<RTCStatsReport> report = RTCStatsReport::Create(1337);
- EXPECT_EQ(report->timestamp_us(), 1337u);
+ rtc::scoped_refptr<RTCStatsReport> report = RTCStatsReport::Create();
report->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats1("C", 2)));
report->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats1("D", 3)));
report->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats2("B", 1)));
@@ -111,13 +109,11 @@
}
TEST(RTCStatsReport, TakeMembersFrom) {
- rtc::scoped_refptr<RTCStatsReport> a = RTCStatsReport::Create(1337);
- EXPECT_EQ(a->timestamp_us(), 1337u);
+ rtc::scoped_refptr<RTCStatsReport> a = RTCStatsReport::Create();
a->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats1("B", 1)));
a->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats1("C", 2)));
a->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats1("E", 4)));
- rtc::scoped_refptr<RTCStatsReport> b = RTCStatsReport::Create(1338);
- EXPECT_EQ(b->timestamp_us(), 1338u);
+ rtc::scoped_refptr<RTCStatsReport> b = RTCStatsReport::Create();
b->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats1("A", 0)));
b->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats1("D", 3)));
b->AddStats(std::unique_ptr<RTCStats>(new RTCTestStats1("F", 5)));
« no previous file with comments | « webrtc/stats/rtcstatsreport.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698