Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
compression-tests.cc File Reference
#include <cstring>
#include <gtest/gtest.h>
#include "blob-compression.hh"
Include dependency graph for compression-tests.cc:

Functions

 for (size_t i=0;i< blobSize;i++)
 
 decompressBlob (out, blobSize, l, provider)
 
 EXPECT_TRUE (!memcmp(in, out, blobSize))
 

Variables

const size_t blockCount = 16
 
const size_t blockSize = 64
 
uint8_t in [blobSize]
 
PageProvider::Ptr const provider = PageProvider::create(blockCount, blockSize)
 
PageList const l = compressBlob(in, blobSize, provider)
 
uint8_t out [blobSize]
 

Function Documentation

◆ decompressBlob()

decompressBlob ( out  ,
blobSize  ,
l  ,
provider   
)

◆ EXPECT_TRUE()

EXPECT_TRUE ( memcmpin, out, blobSize)

◆ for()

for ( )
27 {
28 in[i] = i / 256 + i % 256;
29 }
uint8_t in[blobSize]
Definition compression-tests.cc:25

Variable Documentation

◆ blockCount

const size_t blockCount = 16

◆ blockSize

const size_t blockSize = 64

◆ in

uint8_t in

◆ l

◆ out

◆ provider