simple_encode_test: fix input file path
authorJames Zern <jzern@google.com>
Sun, 6 Jun 2021 02:30:04 +0000 (19:30 -0700)
committerJames Zern <jzern@google.com>
Wed, 9 Jun 2021 21:54:35 +0000 (14:54 -0700)
this allows the file to be located in LIBVPX_TEST_DATA_PATH similar to
other test sources.

Bug: webm:1731
Change-Id: I51606635d91871e7c179aa8d20d4841b0d60b6ad

test/simple_encode_test.cc

index ab893045d803c8671e950ea472f727daa470f923..03e28e338777d329d03d86466e1dd2568cb54088 100644 (file)
@@ -13,6 +13,7 @@
 #include <string>
 #include <vector>
 #include "third_party/googletest/src/include/gtest/gtest.h"
+#include "test/video_source.h"
 #include "vp9/simple_encode.h"
 
 namespace vp9 {
@@ -36,7 +37,8 @@ class SimpleEncodeTest : public ::testing::Test {
   const int frame_rate_den_ = 1;
   const int target_bitrate_ = 1000;
   const int num_frames_ = 17;
-  const std::string in_file_path_str_ = "bus_352x288_420_f20_b8.yuv";
+  const std::string in_file_path_str_ =
+      libvpx_test::GetDataPath() + "/bus_352x288_420_f20_b8.yuv";
 };
 
 TEST_F(SimpleEncodeTest, ComputeFirstPassStats) {