Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions cpp/src/parquet/reader_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,9 @@ TEST(TestFileReader, BufferedReads) {
}
}

struct CodecTestParam {
std::string data_file;
};

class TestCodec : public ::testing::TestWithParam<CodecTestParam> {
class TestCodec : public ::testing::TestWithParam<std::string> {
protected:
const std::string& GetDataFile() { return GetParam().data_file; }
const std::string& GetDataFile() { return GetParam(); }
};

TEST_P(TestCodec, FileMetadataAndValues) {
Expand Down Expand Up @@ -555,8 +551,8 @@ TEST_P(TestCodec, FileMetadataAndValues) {

#ifdef ARROW_WITH_LZ4
INSTANTIATE_TEST_SUITE_P(Lz4CodecTests, TestCodec,
::testing::Values(CodecTestParam{hadoop_lz4_compressed()},
CodecTestParam{non_hadoop_lz4_compressed()}));
::testing::Values(hadoop_lz4_compressed(),
non_hadoop_lz4_compressed()));
#endif

} // namespace parquet