MRPT
1.9.9
|
#include <gtest/gtest.h>
#include <mrpt/core/format.h>
#include <mrpt/io/CFileGZInputStream.h>
#include <mrpt/io/CFileGZOutputStream.h>
#include <mrpt/random/RandomGenerators.h>
#include <mrpt/system/filesystem.h>
#include <test_mrpt_common.h>
#include <algorithm>
Go to the source code of this file.
Functions | |
void | generate_test_data (std::vector< uint8_t > &tst_data) |
TEST (CFileGZStreams, readwriteTmpFileCompressed) | |
TEST (CFileGZStreams, compareWithTestGZFiles) | |
Variables | |
const size_t | tst_data_len = 1000U |
void generate_test_data | ( | std::vector< uint8_t > & | tst_data | ) |
Definition at line 22 of file CFileGZStreams_unittest.cpp.
References mrpt::containers::begin(), mrpt::containers::end(), mrpt::random::Generator_MT19937::seed(), and tst_data_len.
Referenced by TEST().
TEST | ( | CFileGZStreams | , |
readwriteTmpFileCompressed | |||
) |
Definition at line 39 of file CFileGZStreams_unittest.cpp.
References mrpt::containers::begin(), mrpt::containers::end(), EXPECT_EQ(), EXPECT_TRUE(), generate_test_data(), mrpt::system::getTempFileName(), mrpt::io::CFileGZInputStream::open(), mrpt::io::CFileGZOutputStream::open(), mrpt::io::CFileGZInputStream::Read(), mrpt::to_string(), tst_data_len, and mrpt::io::CFileGZOutputStream::Write().
TEST | ( | CFileGZStreams | , |
compareWithTestGZFiles | |||
) |
Definition at line 75 of file CFileGZStreams_unittest.cpp.
References mrpt::containers::begin(), mrpt::containers::end(), EXPECT_EQ(), EXPECT_TRUE(), mrpt::system::fileExists(), mrpt::format(), generate_test_data(), mrpt::io::CFileGZInputStream::open(), mrpt::io::CFileGZInputStream::Read(), and tst_data_len.
const size_t tst_data_len = 1000U |
Definition at line 19 of file CFileGZStreams_unittest.cpp.
Referenced by generate_test_data(), and TEST().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |