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

typedef std::vector<unsigned char> ByteArray

Definition at line 30 of file byte_array_converters.cpp.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 136 of file byte_array_converters.cpp.

void print ( const ByteArray byte_array)

Definition at line 38 of file byte_array_converters.cpp.

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

Definition at line 47 of file byte_array_converters.cpp.

TEST ( Converter  ,
fromByteArray   
)

Definition at line 59 of file byte_array_converters.cpp.

TEST ( Converter  ,
toByteArray   
)

Definition at line 69 of file byte_array_converters.cpp.

TEST ( Converter  ,
toByteArrayFailedSize   
)

Definition at line 91 of file byte_array_converters.cpp.

TEST ( Converter  ,
charToByteArray   
)

Definition at line 103 of file byte_array_converters.cpp.

TEST ( Converter  ,
byteArrayStringConverters   
)

Definition at line 121 of file byte_array_converters.cpp.


Variable Documentation

bool debug_output = false

Definition at line 36 of file byte_array_converters.cpp.



ecl_converters
Author(s): Daniel Stonier
autogenerated on Sun Oct 5 2014 23:35:24