diff options
author | jbauch <jbauch@webrtc.org> | 2015-06-22 15:06:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-22 22:06:50 +0000 |
commit | be24c94c95056e4f0a22039f25f2fa8a27be6b66 (patch) | |
tree | 5f39a1ad2dded6786a91acc1d98038b80ef76b83 /talk/app/webrtc/peerconnection_unittest.cc | |
parent | 6b4a564d21cac99edfa4ab1cb95d525d40855141 (diff) | |
download | webrtc-be24c94c95056e4f0a22039f25f2fa8a27be6b66.tar.gz |
Set / verify stats report timestamps.
This CL updates the track report timestamps which were fixed at "0" before
and updates the timestamps in reports for local audio tracks.
Also the timestamps are checked in various tests to make sure no "0" is
returned.
Original CL is at https://webrtc-codereview.appspot.com/51829004/
BUG=webrtc:4316
TBR=hta@webrtc.org, pthatcher@webrtc.org
Review URL: https://codereview.webrtc.org/1204493002
Cr-Commit-Position: refs/heads/master@{#9485}
Diffstat (limited to 'talk/app/webrtc/peerconnection_unittest.cc')
-rw-r--r-- | talk/app/webrtc/peerconnection_unittest.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/talk/app/webrtc/peerconnection_unittest.cc b/talk/app/webrtc/peerconnection_unittest.cc index 99ee9be867..b9d80196e6 100644 --- a/talk/app/webrtc/peerconnection_unittest.cc +++ b/talk/app/webrtc/peerconnection_unittest.cc @@ -350,6 +350,7 @@ class PeerConnectionTestClientBase EXPECT_TRUE(peer_connection_->GetStats( observer, track, PeerConnectionInterface::kStatsOutputLevelStandard)); EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); + EXPECT_NE(0, observer->timestamp()); return observer->AudioOutputLevel(); } @@ -359,6 +360,7 @@ class PeerConnectionTestClientBase EXPECT_TRUE(peer_connection_->GetStats( observer, NULL, PeerConnectionInterface::kStatsOutputLevelStandard)); EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); + EXPECT_NE(0, observer->timestamp()); return observer->AudioInputLevel(); } @@ -368,6 +370,7 @@ class PeerConnectionTestClientBase EXPECT_TRUE(peer_connection_->GetStats( observer, track, PeerConnectionInterface::kStatsOutputLevelStandard)); EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); + EXPECT_NE(0, observer->timestamp()); return observer->BytesReceived(); } @@ -377,6 +380,7 @@ class PeerConnectionTestClientBase EXPECT_TRUE(peer_connection_->GetStats( observer, track, PeerConnectionInterface::kStatsOutputLevelStandard)); EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); + EXPECT_NE(0, observer->timestamp()); return observer->BytesSent(); } @@ -386,6 +390,7 @@ class PeerConnectionTestClientBase EXPECT_TRUE(peer_connection_->GetStats( observer, NULL, PeerConnectionInterface::kStatsOutputLevelStandard)); EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); + EXPECT_NE(0, observer->timestamp()); int bw = observer->AvailableReceiveBandwidth(); return bw; } @@ -396,6 +401,7 @@ class PeerConnectionTestClientBase EXPECT_TRUE(peer_connection_->GetStats( observer, NULL, PeerConnectionInterface::kStatsOutputLevelStandard)); EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); + EXPECT_NE(0, observer->timestamp()); return observer->DtlsCipher(); } @@ -405,6 +411,7 @@ class PeerConnectionTestClientBase EXPECT_TRUE(peer_connection_->GetStats( observer, NULL, PeerConnectionInterface::kStatsOutputLevelStandard)); EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); + EXPECT_NE(0, observer->timestamp()); return observer->SrtpCipher(); } |