MRPT  1.9.9
Functions | Variables
CFileGZStreams_unittest.cpp File Reference
#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>
Include dependency graph for CFileGZStreams_unittest.cpp:

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
 

Function Documentation

◆ generate_test_data()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TEST() [1/2]

TEST ( CFileGZStreams  ,
readwriteTmpFileCompressed   
)

◆ TEST() [2/2]

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.

Here is the call graph for this function:

Variable Documentation

◆ 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