44 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7,
45 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf,
49 main(
int argc,
char *argv[])
111 buf.
read(foo + 4, 6);
115 buf.
read(foo + 10, 2);
size_t size() const
Return the number of elements stored in the buffer.
int main(int argc, char *argv[])
void write(InputIterator in, size_t len)
Add elements to the end of the ring buffers and advance.
void peek(OutputIterator out, size_t len) const
Copy buffer contents without advancing the read pointer.
void read(OutputIterator out, size_t len)
Copy buffer contents and advance the read pointer.
void setCase(const char *newCase)
Sets the current test case.
unsigned printResults()
Function to call at the end of a test that prints an overall result and a summary of how many checks ...
#define EXPECT_EQ(lhs, rhs)
A macro which verifies that lhs and rhs are equal to each other.