|
|
|
@ -80,7 +80,8 @@ TEST_F(SliceTest, SliceNew) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_F(SliceTest, SliceNewDoNothing) { |
|
|
|
|
Slice spp(const_cast<char*>(kContent), strlen(kContent), [](void* p) {}); |
|
|
|
|
Slice spp(const_cast<char*>(kContent), strlen(kContent), |
|
|
|
|
[](void* /*p*/) {}); |
|
|
|
|
CheckSlice(spp, kContent); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -104,7 +105,7 @@ TEST_F(SliceTest, SliceNewWithUserData) { |
|
|
|
|
|
|
|
|
|
TEST_F(SliceTest, SliceNewLen) { |
|
|
|
|
Slice spp(const_cast<char*>(kContent), strlen(kContent), |
|
|
|
|
[](void* p, size_t l) { EXPECT_EQ(l, strlen(kContent)); }); |
|
|
|
|
[](void* /*p*/, size_t l) { EXPECT_EQ(l, strlen(kContent)); }); |
|
|
|
|
CheckSlice(spp, kContent); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|