test/testsupport/metrics/video_metrics_unittest.cc
TEST_F(VideoMetricsTest, ReturnsPerfectResultForIdenticalFilesPSNR) {
  EXPECT_EQ(0, I420PSNRFromFiles(video_file_.c_str(), video_file_.c_str(),
                                 kWidth, kHeight, &psnr_result_));
  EXPECT_EQ(kPsnrPerfectResult, psnr_result_.average);
}
// Tests that it is possible to run with the same reference as test file
Tests that it is possible to run with the same reference as test file
Tests that it is possible to run with the same reference as test file
TEST_F(VideoMetricsTest, ReturnsPerfectResultForIdenticalFilesPSNR) {
  EXPECT_EQ(0, I420PSNRFromFiles(video_file_.c_str(), video_file_.c_str(),
                                 kWidth, kHeight, &psnr_result_));
  EXPECT_EQ(kPsnrPerfectResult, psnr_result_.average);
}
TEST_F ( VideoMetricsTest , ReturnsPerfectResultForIdenticalFilesPSNR ) { EXPECT_EQ ( 0 , I420PSNRFromFiles ( video_file_ . c_str ( ) , video_file_ . c_str ( ) , kWidth , kHeight , & psnr_result_ ) ) ; EXPECT_EQ ( kPsnrPerfectResult , psnr_result_ . average ) ; }
Tests that it is possible to run with the same reference as test file
Tests that it is possible to run with the same reference as test file