void expect_set_protection_status(MockImageCtx &mock_image_ctx,
uint64_t snap_id, uint8_t status, int r) {
bufferlist bl;
- ::encode(snap_id, bl);
- ::encode(status, bl);
+ encode(snap_id, bl);
+ encode(status, bl);
auto &expect = EXPECT_CALL(get_mock_io_ctx(mock_image_ctx.md_ctx),
exec(mock_image_ctx.header_oid, _, StrEq("rbd"),
void expect_get_children(MockImageCtx &mock_image_ctx, size_t pools, int r) {
bufferlist bl;
std::set<std::string> children;
- ::encode(children, bl);
+ encode(children, bl);
auto &expect = EXPECT_CALL(get_mock_io_ctx(mock_image_ctx.md_ctx),
exec(RBD_CHILDREN, _, StrEq("rbd"), StrEq("get_children"), _,