$search

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 std::vector< char > &byte_array)
void print (const ByteArray &byte_array)
 TEST (Converter, byteArrayStringConverters)
 TEST (Converter, charToByteArray)
 TEST (Converter, toByteArrayFailedSize)
 TEST (Converter, toByteArray)
 TEST (Converter, fromByteArray)

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 std::vector< char > &  byte_array  ) 

Definition at line 47 of file byte_array_converters.cpp.

void print ( const ByteArray byte_array  ) 

Definition at line 38 of file byte_array_converters.cpp.

TEST ( Converter  ,
byteArrayStringConverters   
)

Definition at line 121 of file byte_array_converters.cpp.

TEST ( Converter  ,
charToByteArray   
)

Definition at line 103 of file byte_array_converters.cpp.

TEST ( Converter  ,
toByteArrayFailedSize   
)

Definition at line 91 of file byte_array_converters.cpp.

TEST ( Converter  ,
toByteArray   
)

Definition at line 69 of file byte_array_converters.cpp.

TEST ( Converter  ,
fromByteArray   
)

Definition at line 59 of file byte_array_converters.cpp.


Variable Documentation

bool debug_output = false

Definition at line 36 of file byte_array_converters.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


ecl_converters
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Fri Mar 1 15:20:46 2013