@@ -68,7 +68,7 @@ TEST_F(ProducerFunctionalityTest, offline_upload_limited_buffer_duration) {
6868 << " , Dts: " << frame.decodingTs
6969 << " , Pts: " << frame.presentationTs );
7070
71- EXPECT_TRUE ( kinesis_video_stream->putFrame (frame));
71+ EXPECT_EQ (STATUS_SUCCESS, kinesis_video_stream->statusPutFrame (frame));
7272 timestamp += frame_duration_;
7373 }
7474
@@ -127,7 +127,7 @@ TEST_F(ProducerFunctionalityTest, offline_upload_limited_storage) {
127127 << " , Dts: " << frame.decodingTs
128128 << " , Pts: " << frame.presentationTs );
129129
130- EXPECT_TRUE ( kinesis_video_stream->putFrame (frame));
130+ EXPECT_EQ (STATUS_SUCCESS, kinesis_video_stream->statusPutFrame (frame));
131131 timestamp += frame_duration_;
132132 }
133133
@@ -192,7 +192,7 @@ TEST_F(ProducerFunctionalityTest, intermittent_file_upload) {
192192 << " , Dts: " << frame.decodingTs
193193 << " , Pts: " << frame.presentationTs );
194194
195- EXPECT_TRUE ( kinesis_video_stream->putFrame (frame));
195+ EXPECT_EQ (STATUS_SUCCESS, kinesis_video_stream->statusPutFrame (frame));
196196 timestamp += frame_duration_;
197197
198198 // pause at the last frame of each clip
@@ -257,7 +257,7 @@ TEST_F(ProducerFunctionalityTest, high_fragment_rate_file_upload) {
257257 << " , Dts: " << frame.decodingTs
258258 << " , Pts: " << frame.presentationTs );
259259
260- EXPECT_TRUE ( kinesis_video_stream->putFrame (frame));
260+ EXPECT_EQ (STATUS_SUCCESS, kinesis_video_stream->statusPutFrame (frame));
261261 timestamp += frame_duration_;
262262 }
263263
@@ -316,7 +316,7 @@ TEST_F(ProducerFunctionalityTest, offline_mode_token_rotation_block_on_space) {
316316 << " , Dts: " << frame.decodingTs
317317 << " , Pts: " << frame.presentationTs );
318318
319- EXPECT_TRUE ( kinesis_video_stream->putFrame (frame));
319+ EXPECT_EQ (STATUS_SUCCESS, kinesis_video_stream->statusPutFrame (frame));
320320 timestamp += frame_duration_;
321321 }
322322
@@ -376,7 +376,7 @@ TEST_F(ProducerFunctionalityTest, realtime_intermittent_no_latency_pressure_eofr
376376
377377 // Pause on the 5th
378378 if (i == 5 * key_frame_interval_) {
379- EXPECT_TRUE ( kinesis_video_stream->putFrame (eofr));
379+ EXPECT_EQ (STATUS_SUCCESS, kinesis_video_stream->statusPutFrame (eofr));
380380
381381 // Make sure we hit the connection idle timeout
382382 THREAD_SLEEP (60 * HUNDREDS_OF_NANOS_IN_A_SECOND);
@@ -398,7 +398,7 @@ TEST_F(ProducerFunctionalityTest, realtime_intermittent_no_latency_pressure_eofr
398398 << " , Dts: " << frame.decodingTs
399399 << " , Pts: " << frame.presentationTs );
400400
401- EXPECT_TRUE ( kinesis_video_stream->putFrame (frame));
401+ EXPECT_EQ (STATUS_SUCCESS, kinesis_video_stream->statusPutFrame (frame));
402402 timestamp += frame_duration_;
403403
404404 THREAD_SLEEP (30 * HUNDREDS_OF_NANOS_IN_A_MILLISECOND);
@@ -483,7 +483,7 @@ TEST_F(ProducerFunctionalityTest, DISABLED_realtime_intermittent_no_latency_pres
483483 << " , Dts: " << frame.decodingTs
484484 << " , Pts: " << frame.presentationTs );
485485
486- EXPECT_TRUE ( kinesis_video_stream->putFrame (frame));
486+ EXPECT_EQ (STATUS_SUCCESS, kinesis_video_stream->statusPutFrame (frame));
487487 timestamp += frame_duration_;
488488
489489 THREAD_SLEEP (30 * HUNDREDS_OF_NANOS_IN_A_MILLISECOND);
@@ -579,7 +579,7 @@ TEST_F(ProducerFunctionalityTest, realtime_intermittent_latency_pressure) {
579579 << " , Dts: " << frame.decodingTs
580580 << " , Pts: " << frame.presentationTs );
581581
582- EXPECT_TRUE ( kinesis_video_stream->putFrame (frame));
582+ EXPECT_EQ (STATUS_SUCCESS, kinesis_video_stream->statusPutFrame (frame));
583583
584584 THREAD_SLEEP (frame_duration_);
585585 }
@@ -664,7 +664,7 @@ TEST_F(ProducerFunctionalityTest, realtime_auto_intermittent_latency_pressure) {
664664 << " , Dts: " << frame.decodingTs
665665 << " , Pts: " << frame.presentationTs );
666666
667- EXPECT_TRUE ( kinesis_video_stream->putFrame (frame));
667+ EXPECT_EQ (STATUS_SUCCESS, kinesis_video_stream->statusPutFrame (frame));
668668
669669 THREAD_SLEEP (frame_duration_);
670670 }
0 commit comments