this allows the file to be located in LIBVPX_TEST_DATA_PATH similar to other test sources.
Unified · Split
| @@ -13,6 +13,7 @@ · 12 unmodified lines | |||
| 13 | #include <string> | 13 | #include <string> |
| 14 | #include <vector> | 14 | #include <vector> |
| 15 | #include "third_party/googletest/src/include/gtest/gtest.h" | 15 | #include "third_party/googletest/src/include/gtest/gtest.h" |
| 16 | #include "test/video_source.h" | ||
| 16 | #include "vp9/simple_encode.h" | 17 | #include "vp9/simple_encode.h" |
| 17 | 18 | ||
| 18 | namespace vp9 { | 19 | namespace vp9 { |
| @@ -36,7 +37,8 @@ class SimpleEncodeTest : public ::testing::Test { · 17 unmodified lines | |||
| 36 | const int frame_rate_den_ = 1; | 37 | const int frame_rate_den_ = 1; |
| 37 | const int target_bitrate_ = 1000; | 38 | const int target_bitrate_ = 1000; |
| 38 | const int num_frames_ = 17; | 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 | TEST_F(SimpleEncodeTest, ComputeFirstPassStats) { | 44 | TEST_F(SimpleEncodeTest, ComputeFirstPassStats) { |