Typedefs | Functions | Variables
byte_array_converters.cpp File Reference

Unit test for the byte array converters. More...

#include <iostream>
#include <vector>
#include <gtest/gtest.h>
#include <ecl/config/portable_types.hpp>
#include "../../include/ecl/converters/to_byte_array.hpp"
#include "../../include/ecl/converters/from_byte_array.hpp"
Include dependency graph for byte_array_converters.cpp:

Go to the source code of this file.

Typedefs

typedef std::vector< unsigned char > ByteArray
 

Functions

int main (int argc, char **argv)
 
void print (const ByteArray &byte_array)
 
void print (const std::vector< char > &byte_array)
 
 TEST (Converter, fromByteArray)
 
 TEST (Converter, toByteArray)
 
 TEST (Converter, toByteArrayFailedSize)
 
 TEST (Converter, charToByteArray)
 
 TEST (Converter, byteArrayStringConverters)
 

Variables

bool debug_output = false
 

Detailed Description

Unit test for the byte array converters.

Date
August 2010

Definition in file byte_array_converters.cpp.

Typedef Documentation

◆ ByteArray

typedef std::vector<unsigned char> ByteArray

Definition at line 30 of file byte_array_converters.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 146 of file byte_array_converters.cpp.

◆ print() [1/2]

void print ( const ByteArray byte_array)

Definition at line 38 of file byte_array_converters.cpp.

◆ print() [2/2]

void print ( const std::vector< char > &  byte_array)

Definition at line 47 of file byte_array_converters.cpp.

◆ TEST() [1/5]

TEST ( Converter  ,
fromByteArray   
)

Definition at line 59 of file byte_array_converters.cpp.

◆ TEST() [2/5]

TEST ( Converter  ,
toByteArray   
)

Definition at line 69 of file byte_array_converters.cpp.

◆ TEST() [3/5]

TEST ( Converter  ,
toByteArrayFailedSize   
)

Definition at line 91 of file byte_array_converters.cpp.

◆ TEST() [4/5]

TEST ( Converter  ,
charToByteArray   
)

Definition at line 113 of file byte_array_converters.cpp.

◆ TEST() [5/5]

TEST ( Converter  ,
byteArrayStringConverters   
)

Definition at line 131 of file byte_array_converters.cpp.

Variable Documentation

◆ debug_output

bool debug_output = false

Definition at line 36 of file byte_array_converters.cpp.



ecl_converters
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:18:34