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 |
Definition at line 22 of file CFileGZStreams_unittest.cpp.
References mrpt::containers::begin(), 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(), 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::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: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019 |