testRandomUuid.cc File Reference
#include "squid.h"
#include "base/RandomUuid.h"
#include "compat/cppunit.h"
#include "sbuf/SBuf.h"
#include "sbuf/Stream.h"
#include "unitTestMain.h"
#include <map>
#include <set>
Include dependency graph for testRandomUuid.cc:

Go to the source code of this file.

Classes

class  TestRandomUuid
 

Typedefs

typedef std::map< SBuf, RandomUuid::SerializedRandomIds
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (TestRandomUuid)
 
int main (int argc, char *argv[])
 

Variables

static const RandomIds ExternalIds
 
static const RandomIds InvalidIds
 

Typedef Documentation

◆ RandomIds

Definition at line 37 of file testRandomUuid.cc.

Function Documentation

◆ CPPUNIT_TEST_SUITE_REGISTRATION()

CPPUNIT_TEST_SUITE_REGISTRATION ( TestRandomUuid  )

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 94 of file testRandomUuid.cc.

References TestProgram::run().

Variable Documentation

◆ ExternalIds

const RandomIds ExternalIds
static
Initial value:
{
{ SBuf("bd1b1c07-f7fa-428a-b019-7e390133b0e5"), {{ 0xbd, 0x1b, 0x1c, 0x07, 0xf7, 0xfa, 0x42, 0x8a, 0xb0, 0x19, 0x7e, 0x39, 0x01, 0x33, 0xb0, 0xe5 }} },
{ SBuf("f63ccd5a-9d25-41a5-a36c-a7b0c6b5c678"), {{ 0xf6, 0x3c, 0xcd, 0x5a, 0x9d, 0x25, 0x41, 0xa5, 0xa3, 0x6c, 0xa7, 0xb0, 0xc6, 0xb5, 0xc6, 0x78 }} },
{ SBuf("9c8363ac-9c62-44e9-941f-86b7edc25dc7"), {{ 0x9c, 0x83, 0x63, 0xac, 0x9c, 0x62, 0x44, 0xe9, 0x94, 0x1f, 0x86, 0xb7, 0xed, 0xc2, 0x5d, 0xc7 }} }
}
Definition: SBuf.h:94

Definition at line 41 of file testRandomUuid.cc.

Referenced by TestRandomUuid::testTextRepresentation().

◆ InvalidIds

const RandomIds InvalidIds
static
Initial value:
{
{ SBuf("00000000-0000-0000-0000-000000000000"), {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }} },
{ SBuf("ffffffff-ffff-ffff-ffff-ffffffffffff"), {{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }} }
}

Definition at line 47 of file testRandomUuid.cc.

Referenced by TestRandomUuid::testInvalidIds().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors