| 54 | } |
| 55 | |
| 56 | TEST(FfmpegLibTest, TestUninstalled) { |
| 57 | { |
| 58 | mutex_lock l(mu); |
| 59 | if (should_ffmpeg_be_installed) { |
| 60 | return; |
| 61 | } |
| 62 | LOG(INFO) << "Assuming FFmpeg is uninstalled."; |
| 63 | } |
| 64 | |
| 65 | string filename = io::JoinPath(TensorFlowSrcRoot(), kTestMp3Filename); |
| 66 | std::vector<float> output_samples; |
| 67 | Status status = ReadAudioFile(filename, "mp3", 5000, 1, &output_samples); |
| 68 | ASSERT_EQ(status.code(), error::Code::NOT_FOUND); |
| 69 | } |
| 70 | |
| 71 | TEST(FfmpegLibTest, TestInstalled) { |
| 72 | { |
nothing calls this directly
no test coverage detected