Index: storage/common/blob_storage/blob_item_bytes_response.cc |
diff --git a/storage/common/blob_storage/blob_item_bytes_response.cc b/storage/common/blob_storage/blob_item_bytes_response.cc |
index ccb25981d89c07ffdb3d5b63b455d5190468e1d5..8e81dc6eb5bd1d021663f0a2018749555b7c3fb6 100644 |
--- a/storage/common/blob_storage/blob_item_bytes_response.cc |
+++ b/storage/common/blob_storage/blob_item_bytes_response.cc |
@@ -36,4 +36,18 @@ void PrintTo(const BlobItemBytesResponse& response, ::std::ostream* os) { |
*os << "]}"; |
} |
+bool operator==(const BlobItemBytesResponse& a, |
+ const BlobItemBytesResponse& b) { |
+ return a.request_number == b.request_number && |
+ a.inline_data.size() == b.inline_data.size() && |
+ std::equal(a.inline_data.begin(), |
+ a.inline_data.begin() + a.inline_data.size(), |
+ b.inline_data.begin()); |
+} |
+ |
+bool operator!=(const BlobItemBytesResponse& a, |
+ const BlobItemBytesResponse& b) { |
+ return !(a == b); |
+} |
+ |
} // namespace storage |