Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
leveldb::log::LogTest Class Reference
Collaboration diagram for leveldb::log::LogTest:
Collaboration graph
[legend]

Classes

class  ReportCollector
 
class  StringDest
 
class  StringSource
 

Public Member Functions

 LogTest ()
 
void Write (const std::string &msg)
 
size_t WrittenBytes () const
 
std::string Read ()
 
void IncrementByte (int offset, int delta)
 
void SetByte (int offset, char new_byte)
 
void ShrinkSize (int bytes)
 
void FixChecksum (int header_offset, int len)
 
void ForceError ()
 
size_t DroppedBytes () const
 
std::string ReportMessage () const
 
std::string MatchError (const std::string &msg) const
 
void WriteInitialOffsetLog ()
 
void CheckOffsetPastEndReturnsNoRecords (uint64_t offset_past_end)
 
void CheckInitialOffsetRecord (uint64_t initial_offset, int expected_record_offset)
 

Private Attributes

StringDest dest_
 
StringSource source_
 
ReportCollector report_
 
bool reading_
 
Writer writer_
 
Reader reader_
 

Static Private Attributes

static size_t initial_offset_record_sizes_ []
 
static uint64_t initial_offset_last_record_offsets_ []
 

Detailed Description

Definition at line 39 of file log_test.cc.

Constructor & Destructor Documentation

leveldb::log::LogTest::LogTest ( )
inline

Definition at line 115 of file log_test.cc.

Member Function Documentation

void leveldb::log::LogTest::CheckInitialOffsetRecord ( uint64_t  initial_offset,
int  expected_record_offset 
)
inline

Definition at line 204 of file log_test.cc.

void leveldb::log::LogTest::CheckOffsetPastEndReturnsNoRecords ( uint64_t  offset_past_end)
inline

Definition at line 192 of file log_test.cc.

size_t leveldb::log::LogTest::DroppedBytes ( ) const
inline

Definition at line 167 of file log_test.cc.

void leveldb::log::LogTest::FixChecksum ( int  header_offset,
int  len 
)
inline

Definition at line 156 of file log_test.cc.

void leveldb::log::LogTest::ForceError ( )
inline

Definition at line 163 of file log_test.cc.

void leveldb::log::LogTest::IncrementByte ( int  offset,
int  delta 
)
inline

Definition at line 144 of file log_test.cc.

std::string leveldb::log::LogTest::MatchError ( const std::string &  msg) const
inline

Definition at line 176 of file log_test.cc.

std::string leveldb::log::LogTest::Read ( )
inline

Definition at line 130 of file log_test.cc.

std::string leveldb::log::LogTest::ReportMessage ( ) const
inline

Definition at line 171 of file log_test.cc.

void leveldb::log::LogTest::SetByte ( int  offset,
char  new_byte 
)
inline

Definition at line 148 of file log_test.cc.

void leveldb::log::LogTest::ShrinkSize ( int  bytes)
inline

Definition at line 152 of file log_test.cc.

void leveldb::log::LogTest::Write ( const std::string &  msg)
inline

Definition at line 121 of file log_test.cc.

void leveldb::log::LogTest::WriteInitialOffsetLog ( )
inline

Definition at line 184 of file log_test.cc.

size_t leveldb::log::LogTest::WrittenBytes ( ) const
inline

Definition at line 126 of file log_test.cc.

Member Data Documentation

StringDest leveldb::log::LogTest::dest_
private

Definition at line 103 of file log_test.cc.

uint64_t leveldb::log::LogTest::initial_offset_last_record_offsets_
staticprivate
Initial value:
=
{0,
kHeaderSize + 10000,
2 * (kHeaderSize + 10000),
2 * (kHeaderSize + 10000) +
(2 * log::kBlockSize - 1000) + 3 * kHeaderSize}

Definition at line 112 of file log_test.cc.

size_t leveldb::log::LogTest::initial_offset_record_sizes_
staticprivate
Initial value:
=
{10000,
10000,
2 * log::kBlockSize - 1000,
1}

Definition at line 111 of file log_test.cc.

Reader leveldb::log::LogTest::reader_
private

Definition at line 108 of file log_test.cc.

bool leveldb::log::LogTest::reading_
private

Definition at line 106 of file log_test.cc.

ReportCollector leveldb::log::LogTest::report_
private

Definition at line 105 of file log_test.cc.

StringSource leveldb::log::LogTest::source_
private

Definition at line 104 of file log_test.cc.

Writer leveldb::log::LogTest::writer_
private

Definition at line 107 of file log_test.cc.


The documentation for this class was generated from the following file: