From ccf75f67a0d39418ccfc460c900bb72fd9537b24 Mon Sep 17 00:00:00 2001 From: Tom Finegan Date: Wed, 30 Mar 2016 12:02:00 -0700 Subject: [PATCH] msvc/muxer_tests: Silence integer conversion warnings. Change-Id: Ic11a83968aa5a70ca364ebce97d465f74cda5eee --- testing/muxer_tests.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/testing/muxer_tests.cc b/testing/muxer_tests.cc index e772bbb..de5a918 100644 --- a/testing/muxer_tests.cc +++ b/testing/muxer_tests.cc @@ -65,8 +65,8 @@ class MuxerTest : public testing::Test { } void AddVideoTrack() { - const int vid_track = - segment_.AddVideoTrack(kWidth, kHeight, kVideoTrackNumber); + const int vid_track = static_cast( + segment_.AddVideoTrack(kWidth, kHeight, kVideoTrackNumber)); ASSERT_EQ(kVideoTrackNumber, vid_track); VideoTrack* const video = dynamic_cast(segment_.GetTrackByNumber(vid_track)); @@ -75,8 +75,8 @@ class MuxerTest : public testing::Test { } void AddAudioTrack() { - const int aud_track = - segment_.AddAudioTrack(kSampleRate, kChannels, kAudioTrackNumber); + const int aud_track = static_cast( + segment_.AddAudioTrack(kSampleRate, kChannels, kAudioTrackNumber)); ASSERT_EQ(kAudioTrackNumber, aud_track); AudioTrack* const audio = dynamic_cast(segment_.GetTrackByNumber(aud_track)); @@ -151,8 +151,8 @@ TEST_F(MuxerTest, AddTracks) { EXPECT_EQ(static_cast(kVideoTrackNumber), video->uid()); // Add an Audio Track - const int aud_track = - segment_.AddAudioTrack(kSampleRate, kChannels, kAudioTrackNumber); + const int aud_track = static_cast( + segment_.AddAudioTrack(kSampleRate, kChannels, kAudioTrackNumber)); EXPECT_EQ(kAudioTrackNumber, aud_track); AudioTrack* const audio = dynamic_cast(segment_.GetTrackByNumber(aud_track));