src/base/chunk_generator.test.cc
/*
 * As a special case, we assume there is no chunking when the chunk size is
 * zero. Processing a chunk (i.e., execution of "next()"). should progress to
 * the end of the region.
 */
As a special case, we assume there is no chunking when the chunk size is
zero. Processing a chunk "). should progress to
the end of the region.
As a special case we assume there is no chunking when the chunk size is zero . Processing a chunk " ) . should progress to the end of the region .
TEST(ChunkGeneratorTest, ChunkSizeZero)
{
    ChunkGenerator chunk_generator(0, 64, 0);
    EXPECT_EQ(0, chunk_generator.addr());
    EXPECT_EQ(64, chunk_generator.size());
    EXPECT_EQ(0, chunk_generator.complete());
    EXPECT_FALSE(chunk_generator.done());
    EXPECT_TRUE(chunk_generator.last());
    EXPECT_FALSE(chunk_generator.next());
    EXPECT_EQ(0, chunk_generator.addr());
    EXPECT_EQ(0, chunk_generator.size());
    EXPECT_EQ(0, chunk_generator.complete());
    EXPECT_TRUE(chunk_generator.done());
    EXPECT_TRUE(chunk_generator.last());
}
TEST ( ChunkGeneratorTest , ChunkSizeZero ) { ChunkGenerator chunk_generator ( 0 , 64 , 0 ) ; EXPECT_EQ ( 0 , chunk_generator . addr ( ) ) ; EXPECT_EQ ( 64 , chunk_generator . size ( ) ) ; EXPECT_EQ ( 0 , chunk_generator . complete ( ) ) ; EXPECT_FALSE ( chunk_generator . done ( ) ) ; EXPECT_TRUE ( chunk_generator . last ( ) ) ; EXPECT_FALSE ( chunk_generator . next ( ) ) ; EXPECT_EQ ( 0 , chunk_generator . addr ( ) ) ; EXPECT_EQ ( 0 , chunk_generator . size ( ) ) ; EXPECT_EQ ( 0 , chunk_generator . complete ( ) ) ; EXPECT_TRUE ( chunk_generator . done ( ) ) ; EXPECT_TRUE ( chunk_generator . last ( ) ) ; }
As a special case, we assume there is no chunking when the chunk size is
 zero.
As a special case we assume there is no chunking when the chunk size is zero .
//Process the entire region.