Lines Matching refs:op

33 std::ostream& operator<<(std::ostream& out, CowOperation::Type op) {  in operator <<()  argument
34 switch (op) { in operator <<()
42 out << op; in operator <<()
49 out << "{" << c.op << ", " << c.src_block << ", " << c.dst_block << ", " in operator <<()
60 for (auto&& op : operations_) { in VerifyCowMergeOp()
61 src_extent_set.AddRepeatedExtents(op.src_extents()); in VerifyCowMergeOp()
62 dst_extent_set.AddRepeatedExtents(op.dst_extents()); in VerifyCowMergeOp()
66 if (cow_op.op == CowOperation::CowCopy) { in VerifyCowMergeOp()
97 auto&& op = operations->Add(); in AddOperation()
98 op->set_type(op_type); in AddOperation()
100 *op->add_src_extents() = ExtentForRange(extent[0], extent[1]); in AddOperation()
103 *op->add_dst_extents() = ExtentForRange(extent[0], extent[1]); in AddOperation()
111 auto&& op = operations->Add(); in AddMergeOperation()
112 op->set_type(op_type); in AddMergeOperation()
113 *op->mutable_src_extent() = ExtentForRange(src_extent[0], src_extent[1]); in AddMergeOperation()
114 *op->mutable_dst_extent() = ExtentForRange(dst_extent[0], dst_extent[1]); in AddMergeOperation()
135 return cow_op.op == CowOperation::CowCopy; in TEST_F()
163 return cow_op.op == CowOperation::CowCopy; in TEST_F()
169 return cow_op.op == CowOperation::CowReplace; in TEST_F()
194 return cow_op.op == CowOperation::CowCopy; in TEST_F()
222 return cow_op.op == CowOperation::CowCopy; in TEST_F()
238 return cow_op.op == CowOperation::CowCopy; in TEST_F()
255 for (const auto& op : cow_ops) { in TEST_F() local
256 LOG(INFO) << op; in TEST_F()
263 return cow_op.op == CowOperation::CowCopy; in TEST_F()
269 return cow_op.op == CowOperation::CowReplace; in TEST_F()
282 for (const auto& op : cow_ops) { in TEST_F() local
283 LOG(INFO) << op; in TEST_F()
288 ASSERT_EQ(cow_ops[0].op, CowOperation::CowReplace); in TEST_F()
293 ASSERT_EQ(cow_ops[1].op, CowOperation::CowReplace); in TEST_F()