this allows the file to be located in LIBVPX_TEST_DATA_PATH similar to other test sources.
Showing the changes to test/simple_encode_test.cc (1 of 1 file). Show all
Unified · Split
| @@ -13,6 +13,7 @@ · 12 unmodified lines | ||
| 13 | 13 | #include <string> |
| 14 | 14 | #include <vector> |
| 15 | 15 | #include "third_party/googletest/src/include/gtest/gtest.h" |
| 16 | +#include "test/video_source.h" | |
| 16 | 17 | #include "vp9/simple_encode.h" |
| 17 | 18 | |
| 18 | 19 | namespace vp9 { |
| @@ -36,7 +37,8 @@ class SimpleEncodeTest : public ::testing::Test { · 17 unmodified lines | ||
| 36 | 37 | const int frame_rate_den_ = 1; |
| 37 | 38 | const int target_bitrate_ = 1000; |
| 38 | 39 | const int num_frames_ = 17; |
| 39 | − const std::string in_file_path_str_ = "bus_352x288_420_f20_b8.yuv"; | |
| 40 | + const std::string in_file_path_str_ = | |
| 41 | + libvpx_test::GetDataPath() + "/bus_352x288_420_f20_b8.yuv"; | |
| 40 | 42 | }; |
| 41 | 43 | |
| 42 | 44 | TEST_F(SimpleEncodeTest, ComputeFirstPassStats) { |