src/base/chunk_generator.test.cc
/*
 * A test to ensure the object is in a sane state after initialization.
 */
A test to ensure the object is in a sane state after initialization.
A test to ensure the object is in a sane state after initialization .
TEST(ChunkGeneratorTest, StartingConditions)
{
    ChunkGenerator chunk_generator(0, 1024, 8);
    EXPECT_EQ(0, chunk_generator.addr());
    EXPECT_EQ(8, chunk_generator.size());
    EXPECT_EQ(0, chunk_generator.complete());
    EXPECT_FALSE(chunk_generator.done());
    EXPECT_FALSE(chunk_generator.last());
}
TEST ( ChunkGeneratorTest , StartingConditions ) { ChunkGenerator chunk_generator ( 0 , 1024 , 8 ) ; EXPECT_EQ ( 0 , chunk_generator . addr ( ) ) ; EXPECT_EQ ( 8 , chunk_generator . size ( ) ) ; EXPECT_EQ ( 0 , chunk_generator . complete ( ) ) ; EXPECT_FALSE ( chunk_generator . done ( ) ) ; EXPECT_FALSE ( chunk_generator . last ( ) ) ; }
A test to ensure the object is in a sane state after initialization.
A test to ensure the object is in a sane state after initialization .