Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Unified Diff: storage/common/blob_storage/blob_item_bytes_response.cc

Issue 1292523002: [BlobAsync] Patch 3: Renderer Classes & Logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async2
Patch Set: comments and test Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « storage/common/blob_storage/blob_item_bytes_response.h ('k') | storage/common/data_element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « storage/common/blob_storage/blob_item_bytes_response.h ('k') | storage/common/data_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698