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/simple_encode_test.cc (1 of 1 file). Show all

Unified · Split

test/simple_encode_test.cc+3−1
@@ -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
18namespace vp9 {19namespace 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
42TEST_F(SimpleEncodeTest, ComputeFirstPassStats) {44TEST_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