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

Unified Diff: media/cast/logging/logging_impl_unittest.cc

Issue 178073004: Cast: IPC from browser to renderer to send packet events from transport to cast library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 | « media/cast/logging/logging_impl.cc ('k') | media/cast/logging/proto/proto_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/logging/logging_impl_unittest.cc
diff --git a/media/cast/logging/logging_impl_unittest.cc b/media/cast/logging/logging_impl_unittest.cc
index 190a6b4993194e4c9fc24e9983178dad916f4308..fd555067bc61ce421cabef160841f4af9529cff9 100644
--- a/media/cast/logging/logging_impl_unittest.cc
+++ b/media/cast/logging/logging_impl_unittest.cc
@@ -214,9 +214,13 @@ TEST_F(LoggingImplTest, PacketLogging) {
do {
for (int i = 0; i < kNumPacketsPerFrame; ++i) {
int size = kBaseSize + base::RandInt(-kSizeInterval, kSizeInterval);
- logging_->InsertPacketEvent(testing_clock_.NowTicks(), kPacketSentToPacer,
- rtp_timestamp, frame_id, i,
- kNumPacketsPerFrame, size);
+ logging_->InsertPacketEvent(testing_clock_.NowTicks(),
+ kVideoPacketSentToPacer,
+ rtp_timestamp,
+ frame_id,
+ i,
+ kNumPacketsPerFrame,
+ size);
}
testing_clock_.Advance(base::TimeDelta::FromMilliseconds(kFrameIntervalMs));
rtp_timestamp += kFrameIntervalMs * 90;
@@ -232,7 +236,7 @@ TEST_F(LoggingImplTest, PacketLogging) {
PacketStatsMap stats_map = logging_->GetPacketStatsData();
// Size of stats equals the number of events.
EXPECT_EQ(1u, stats_map.size());
- PacketStatsMap::const_iterator it = stats_map.find(kPacketSentToPacer);
+ PacketStatsMap::const_iterator it = stats_map.find(kVideoPacketSentToPacer);
EXPECT_TRUE(it != stats_map.end());
}
« no previous file with comments | « media/cast/logging/logging_impl.cc ('k') | media/cast/logging/proto/proto_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698