jigdo API
job/jigdo-io-test.cc File Reference
#include <config.h>
#include <limits.h>
#include <string.h>
#include <makeimagedl.hh>
#include <md5sum.hh>
#include <url-mapping.hh>
#include <jigdo-io.hh>
#include <jigdo-io.cc>
Defines | |
#define | DEBUG 1 |
Typedefs | |
typedef MakeImageDl::Child | Child |
typedef map< string, const char * > | MapWww |
Functions | |
MemData * | memData (Child *c) |
MemData * | memData (MakeImageDl &m, const char *url) |
void | output (MakeImageDl &m, const char *url, size_t n=UINT_MAX) |
void | idle () |
void | escapedChar (string *o, byte c) |
string | escapedString (const string &s) |
void | loggerPut (const string &unitName, unsigned char unitNameLen, const char *format, int args, const Subst arg[]) |
void | loggerInit () |
void | testSimple () |
void | testNoMD5 () |
void | testMinimal () |
void | testLoop () |
void | testFork () |
void | testBetween () |
int | main (int argc, char *argv[]) |
Variables | |
GMainLoop * | gLoop = 0 |
MapWww | www |
const char *const | hexDigits = "0123456789abcdef" |
bool | jigdoIoEnabled = false |
string | imgSectLogged |
Define Documentation
#define DEBUG 1 |
Typedef Documentation
typedef MakeImageDl::Child Child |
typedef map<string, const char*> MapWww [static] |
Function Documentation
void @36::escapedChar | ( | string * | o, | |
byte | c | |||
) | [static] |
Referenced by escapedString(), and main().
string @36::escapedString | ( | const string & | s | ) | [inline, static] |
References escapedChar().
Referenced by testBetween(), testCase(), testCase2(), testFork(), testImageInfo(), testLoop(), testMinimal(), testNoMD5(), and testSimple().
void @36::idle | ( | ) | [static] |
Referenced by testLoop(), testMinimal(), testNoMD5(), and testSimple().
void @36::loggerInit | ( | ) | [static] |
References Assert, Logger::enabled(), Logger::enumerate(), loggerPut(), Logger::name(), Logger::setEnabled(), and Logger::setOutputFunction().
Referenced by main().
void @36::loggerPut | ( | const string & | unitName, | |
unsigned char | unitNameLen, | |||
const char * | format, | |||
int | args, | |||
const Subst | arg[] | |||
) | [static] |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References gLoop, loggerInit(), msg, Logger::scanOptions(), testBetween(), testFork(), testLoop(), testMinimal(), testNoMD5(), and testSimple().
MemData* @36::memData | ( | MakeImageDl & | m, | |
const char * | url | |||
) | [static] |
References Assert, Job::MakeImageDl::children(), and msg.
MemData* @36::memData | ( | Child * | c | ) | [inline, static] |
References Assert, and Job::MakeImageDl::Child::source().
Referenced by output(), testLoop(), testMinimal(), testNoMD5(), and testSimple().
void @36::output | ( | MakeImageDl & | m, | |
const char * | url, | |||
size_t | n = UINT_MAX | |||
) | [inline, static] |
References memData().
void testBetween | ( | ) |
void testFork | ( | ) |
void testLoop | ( | ) |
References Assert, Job::MakeImageDl::childFor(), escapedString(), idle(), imgSectLogged, Job::DataSource::io, memData(), msg, output, Job::MakeImageDl::Child::source(), and www.
Referenced by main().
void testMinimal | ( | ) |
References Assert, Job::MakeImageDl::childFor(), escapedString(), idle(), imgSectLogged, Job::DataSource::io, memData(), msg, Job::MakeImageDl::Child::source(), and www.
Referenced by main().
void testNoMD5 | ( | ) |
References Assert, Job::MakeImageDl::childFor(), escapedString(), idle(), imgSectLogged, Job::DataSource::io, memData(), msg, Job::MakeImageDl::Child::source(), and www.
Referenced by main().
void testSimple | ( | ) |
References Assert, Job::MakeImageDl::childFor(), escapedString(), idle(), imgSectLogged, Job::DataSource::io, memData(), msg, Job::MakeImageDl::Child::source(), and www.
Referenced by main().
Variable Documentation
const byte* cur |
Referenced by printBlockSums().
const byte* data |
const byte* dataEnd |
const char* const hexDigits = "0123456789abcdef" [static] |
Referenced by escapedChar(), and toHex().
string imgSectLogged [static] |
Referenced by testBetween(), testFork(), testLoop(), testMinimal(), testNoMD5(), and testSimple().
bool jigdoIoEnabled = false [static] |
string locVal |
Referenced by Job::MakeImageDl::childFor(), testBetween(), testFork(), testLoop(), testMinimal(), testNoMD5(), and testSimple().
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
