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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
Index: media/cast/logging/stats_event_subscriber_unittest.cc
diff --git a/media/cast/logging/stats_event_subscriber_unittest.cc b/media/cast/logging/stats_event_subscriber_unittest.cc
index d649c8960bf87b3546176a44c4d100caef921a62..0cec20fc444800a3790fe4c9a969e33ff3c7a968 100644
--- a/media/cast/logging/stats_event_subscriber_unittest.cc
+++ b/media/cast/logging/stats_event_subscriber_unittest.cc
@@ -67,8 +67,8 @@ class StatsEventSubscriberTest : public ::testing::Test {
TEST_F(StatsEventSubscriberTest, CaptureEncode) {
Init(VIDEO_EVENT);
- uint32 rtp_timestamp = 0;
- uint32 frame_id = 0;
+ uint32_t rtp_timestamp = 0;
+ uint32_t frame_id = 0;
int extra_frames = 50;
// Only the first |extra_frames| frames logged will be taken into account
// when computing dropped frames.
@@ -147,8 +147,8 @@ TEST_F(StatsEventSubscriberTest, CaptureEncode) {
TEST_F(StatsEventSubscriberTest, Encode) {
Init(VIDEO_EVENT);
- uint32 rtp_timestamp = 0;
- uint32 frame_id = 0;
+ uint32_t rtp_timestamp = 0;
+ uint32_t frame_id = 0;
int num_frames = 10;
base::TimeTicks start_time = sender_clock_->NowTicks();
AdvanceClocks(base::TimeDelta::FromMicroseconds(35678));
@@ -215,8 +215,8 @@ TEST_F(StatsEventSubscriberTest, Encode) {
TEST_F(StatsEventSubscriberTest, Decode) {
Init(VIDEO_EVENT);
- uint32 rtp_timestamp = 0;
- uint32 frame_id = 0;
+ uint32_t rtp_timestamp = 0;
+ uint32_t frame_id = 0;
int num_frames = 10;
base::TimeTicks start_time = sender_clock_->NowTicks();
for (int i = 0; i < num_frames; i++) {
@@ -251,8 +251,8 @@ TEST_F(StatsEventSubscriberTest, Decode) {
TEST_F(StatsEventSubscriberTest, PlayoutDelay) {
Init(VIDEO_EVENT);
- uint32 rtp_timestamp = 0;
- uint32 frame_id = 0;
+ uint32_t rtp_timestamp = 0;
+ uint32_t frame_id = 0;
int num_frames = 10;
int late_frames = 0;
for (int i = 0, delay_ms = -50; i < num_frames; i++, delay_ms += 10) {
@@ -286,8 +286,8 @@ TEST_F(StatsEventSubscriberTest, PlayoutDelay) {
TEST_F(StatsEventSubscriberTest, E2ELatency) {
Init(VIDEO_EVENT);
- uint32 rtp_timestamp = 0;
- uint32 frame_id = 0;
+ uint32_t rtp_timestamp = 0;
+ uint32_t frame_id = 0;
int num_frames = 10;
base::TimeDelta total_latency;
for (int i = 0; i < num_frames; i++) {
@@ -333,7 +333,7 @@ TEST_F(StatsEventSubscriberTest, E2ELatency) {
TEST_F(StatsEventSubscriberTest, Packets) {
Init(VIDEO_EVENT);
- uint32 rtp_timestamp = 0;
+ uint32_t rtp_timestamp = 0;
int num_packets = 10;
int num_latency_recorded_packets = 0;
base::TimeTicks start_time = sender_clock_->NowTicks();
@@ -557,8 +557,8 @@ TEST_F(StatsEventSubscriberTest, Histograms) {
Init(VIDEO_EVENT);
AdvanceClocks(base::TimeDelta::FromMilliseconds(123));
- uint32 rtp_timestamp = 123;
- uint32 frame_id = 0;
+ uint32_t rtp_timestamp = 123;
+ uint32_t frame_id = 0;
// 10 Frames with capture latency in the bucket of "10-14"ms.
// 10 Frames with encode time in the bucket of "15-19"ms.

Powered by Google App Engine
This is Rietveld 408576698