History

simple_encode_test: fix input file path

this allows the file to be located in LIBVPX_TEST_DATA_PATH similar to other test sources.

James Zern committed 5 years ago

Commit 71d09c31 parent 463d3311 file · +3 −1Browse files

Showing the changes to test (1 of 1 file). Show all

Unified · Split

test/simple_encode_test.cc+3−1
@@ -13,6 +13,7 @@ · 12 unmodified lines
1313 #include <string>
1414 #include <vector>
1515 #include "third_party/googletest/src/include/gtest/gtest.h"
16+#include "test/video_source.h"
1617 #include "vp9/simple_encode.h"
1718
1819 namespace vp9 {
@@ -36,7 +37,8 @@ class SimpleEncodeTest : public ::testing::Test { · 17 unmodified lines
3637 const int frame_rate_den_ = 1;
3738 const int target_bitrate_ = 1000;
3839 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";
4042 };
4143
4244 TEST_F(SimpleEncodeTest, ComputeFirstPassStats) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t