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

Unified Diff: sync/api/attachments/fake_attachment_store_unittest.cc

Issue 187303006: Update sync API to support attachments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@attachmentapi
Patch Set: Pull in upstream changes. Created 6 years, 9 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
Index: sync/api/attachments/fake_attachment_store_unittest.cc
diff --git a/sync/api/attachments/fake_attachment_store_unittest.cc b/sync/api/attachments/fake_attachment_store_unittest.cc
index 650452c46d2bec479bf7fb6f15449dbe2d4882ae..60ceb1053e2d9bb0684cb03a19e1fb52ca6c9e9a 100644
--- a/sync/api/attachments/fake_attachment_store_unittest.cc
+++ b/sync/api/attachments/fake_attachment_store_unittest.cc
@@ -100,8 +100,8 @@ TEST_F(FakeAttachmentStoreTest, WriteReadRoundTrip) {
TEST_F(FakeAttachmentStoreTest, Read_NotFound) {
FakeAttachmentStore store(base::MessageLoopProxy::current());
scoped_refptr<base::RefCountedString> some_data(new base::RefCountedString);
- scoped_ptr<Attachment> some_attachment = Attachment::Create(some_data);
- AttachmentId some_id = some_attachment->GetId();
+ Attachment some_attachment = Attachment::Create(some_data);
+ AttachmentId some_id = some_attachment.GetId();
store.Read(some_id, read_callback);
ClearAndPumpLoop();
EXPECT_EQ(result, AttachmentStore::NOT_FOUND);

Powered by Google App Engine
This is Rietveld 408576698