summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2021-06-05 19:30:04 -0700
committerJames Zern <jzern@google.com>2021-06-09 14:54:35 -0700
commit71d09c34fff6f51a153b8732eef6bfb4e381fcbf (patch)
tree2a11aca8c45002112da438fe8636fc3cd45affaf /test
parent463d33145de28770f815466db0ffc85d14442043 (diff)
downloadlibvpx-71d09c34fff6f51a153b8732eef6bfb4e381fcbf.tar
libvpx-71d09c34fff6f51a153b8732eef6bfb4e381fcbf.tar.gz
libvpx-71d09c34fff6f51a153b8732eef6bfb4e381fcbf.tar.bz2
libvpx-71d09c34fff6f51a153b8732eef6bfb4e381fcbf.zip
simple_encode_test: fix input file path
this allows the file to be located in LIBVPX_TEST_DATA_PATH similar to other test sources. Bug: webm:1731 Change-Id: I51606635d91871e7c179aa8d20d4841b0d60b6ad
Diffstat (limited to 'test')
-rw-r--r--test/simple_encode_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/simple_encode_test.cc b/test/simple_encode_test.cc
index ab893045d..03e28e338 100644
--- a/test/simple_encode_test.cc
+++ b/test/simple_encode_test.cc
@@ -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) {