Fix compiler warning
This commit is contained in:
parent
df9a44eace
commit
d8b7a99ea8
@ -151,7 +151,7 @@ TEST_F(BlobSizeDataTest, DataStaysIntactWhenGrowing) {
|
||||
blob->write(randomData.data(), 0, MEDIUM_SIZE);
|
||||
blob->resize(LARGE_SIZE);
|
||||
EXPECT_EQ(0, std::memcmp(readBlob(*blob).data(), randomData.data(), MEDIUM_SIZE));
|
||||
EXPECT_EQ(0, std::memcmp(readBlob(*blob).data() + MEDIUM_SIZE, ZEROES.data(), LARGE_SIZE-MEDIUM_SIZE));
|
||||
EXPECT_EQ(0, std::memcmp((uint8_t*)readBlob(*blob).data() + MEDIUM_SIZE, ZEROES.data(), LARGE_SIZE-MEDIUM_SIZE));
|
||||
}
|
||||
|
||||
TEST_F(BlobSizeDataTest, DataStaysIntactWhenShrinking) {
|
||||
@ -167,5 +167,5 @@ TEST_F(BlobSizeDataTest, ChangedAreaIsZeroedOutWhenShrinkingAndRegrowing) {
|
||||
blob->resize(MEDIUM_SIZE);
|
||||
blob->resize(LARGE_SIZE);
|
||||
EXPECT_EQ(0, std::memcmp(readBlob(*blob).data(), randomData.data(), MEDIUM_SIZE));
|
||||
EXPECT_EQ(0, std::memcmp(readBlob(*blob).data() + MEDIUM_SIZE, ZEROES.data(), LARGE_SIZE-MEDIUM_SIZE));
|
||||
EXPECT_EQ(0, std::memcmp((uint8_t*)readBlob(*blob).data() + MEDIUM_SIZE, ZEROES.data(), LARGE_SIZE-MEDIUM_SIZE));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user