msvc/muxer_tests: Silence integer conversion warnings.
Change-Id: Ic11a83968aa5a70ca364ebce97d465f74cda5eee
This commit is contained in:
parent
2ff2954fa9
commit
ccf75f67a0
@ -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<int>(
|
||||
segment_.AddVideoTrack(kWidth, kHeight, kVideoTrackNumber));
|
||||
ASSERT_EQ(kVideoTrackNumber, vid_track);
|
||||
VideoTrack* const video =
|
||||
dynamic_cast<VideoTrack*>(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<int>(
|
||||
segment_.AddAudioTrack(kSampleRate, kChannels, kAudioTrackNumber));
|
||||
ASSERT_EQ(kAudioTrackNumber, aud_track);
|
||||
AudioTrack* const audio =
|
||||
dynamic_cast<AudioTrack*>(segment_.GetTrackByNumber(aud_track));
|
||||
@ -151,8 +151,8 @@ TEST_F(MuxerTest, AddTracks) {
|
||||
EXPECT_EQ(static_cast<uint64_t>(kVideoTrackNumber), video->uid());
|
||||
|
||||
// Add an Audio Track
|
||||
const int aud_track =
|
||||
segment_.AddAudioTrack(kSampleRate, kChannels, kAudioTrackNumber);
|
||||
const int aud_track = static_cast<int>(
|
||||
segment_.AddAudioTrack(kSampleRate, kChannels, kAudioTrackNumber));
|
||||
EXPECT_EQ(kAudioTrackNumber, aud_track);
|
||||
AudioTrack* const audio =
|
||||
dynamic_cast<AudioTrack*>(segment_.GetTrackByNumber(aud_track));
|
||||
|
Loading…
Reference in New Issue
Block a user