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

Unified Diff: sync/internal_api/attachments/fake_attachment_uploader_unittest.cc

Issue 710073003: Store attachment crc in AttachmentStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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
Index: sync/internal_api/attachments/fake_attachment_uploader_unittest.cc
diff --git a/sync/internal_api/attachments/fake_attachment_uploader_unittest.cc b/sync/internal_api/attachments/fake_attachment_uploader_unittest.cc
index 2cfd75ece89d2ab383db886e0a102d803b6809f3..4ecbc7466a99fec0040aaa66bb0d051c436d2114 100644
--- a/sync/internal_api/attachments/fake_attachment_uploader_unittest.cc
+++ b/sync/internal_api/attachments/fake_attachment_uploader_unittest.cc
@@ -47,9 +47,9 @@ class FakeAttachmentUploaderTest : public testing::Test {
TEST_F(FakeAttachmentUploaderTest, UploadAttachment) {
scoped_refptr<base::RefCountedString> some_data(new base::RefCountedString);
some_data->data() = kAttachmentData;
- Attachment attachment1 = Attachment::Create(some_data);
- Attachment attachment2 = Attachment::Create(some_data);
- Attachment attachment3 = Attachment::Create(some_data);
+ Attachment attachment1 = Attachment::CreateNew(some_data);
+ Attachment attachment2 = Attachment::CreateNew(some_data);
+ Attachment attachment3 = Attachment::CreateNew(some_data);
uploader.UploadAttachment(attachment1, upload_callback);
uploader.UploadAttachment(attachment2, upload_callback);
uploader.UploadAttachment(attachment3, upload_callback);

Powered by Google App Engine
This is Rietveld 408576698