#ifndef STORAGE_BROWSER_BLOB_BLOB_DATA_SNAPSHOT_H_
#define STORAGE_BROWSER_BLOB_BLOB_DATA_SNAPSHOT_H_
#include <stddef.h>
#include <string>
#include <vector>
#include "base/component_export.h"
#include "base/memory/scoped_refptr.h"
#include "storage/browser/blob/blob_data_item.h"
namespace storage {
class BlobDataBuilder;
class COMPONENT_EXPORT(STORAGE_BROWSER) BlobDataSnapshot { … };
#if defined(UNIT_TEST)
inline bool operator==(const BlobDataSnapshot& a, const BlobDataSnapshot& b) {
if (a.content_type() != b.content_type()) {
return false;
}
if (a.content_disposition() != b.content_disposition()) {
return false;
}
if (a.items().size() != b.items().size()) {
return false;
}
for (size_t i = 0; i < a.items().size(); ++i) {
if (*(a.items()[i]) != *(b.items()[i]))
return false;
}
return true;
}
#endif
}
#endif