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

Side by Side Diff: sync/api/sync_data_unittest.cc

Issue 973513002: [Sync] Remove DropAttachments from AttachmentService and SyncData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix call count. Created 5 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 unified diff | Download patch
« no previous file with comments | « sync/api/sync_data.cc ('k') | sync/internal_api/attachments/attachment_service_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/api/sync_data.h" 5 #include "sync/api/sync_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/ref_counted_memory.h" 9 #include "base/memory/ref_counted_memory.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 AttachmentIdList(), 110 AttachmentIdList(),
111 attachment_service_proxy); 111 attachment_service_proxy);
112 EXPECT_TRUE(data.IsValid()); 112 EXPECT_TRUE(data.IsValid());
113 EXPECT_FALSE(data.IsLocal()); 113 EXPECT_FALSE(data.IsLocal());
114 EXPECT_EQ(kId, SyncDataRemote(data).GetId()); 114 EXPECT_EQ(kId, SyncDataRemote(data).GetId());
115 EXPECT_EQ(kLastModifiedTime, SyncDataRemote(data).GetModifiedTime()); 115 EXPECT_EQ(kLastModifiedTime, SyncDataRemote(data).GetModifiedTime());
116 EXPECT_TRUE(data.GetSpecifics().has_preference()); 116 EXPECT_TRUE(data.GetSpecifics().has_preference());
117 EXPECT_TRUE(data.GetAttachmentIds().empty()); 117 EXPECT_TRUE(data.GetAttachmentIds().empty());
118 } 118 }
119 119
120 // TODO(maniscalco): Add test cases that verify GetLocalAttachmentsForUpload and 120 // TODO(maniscalco): Add test cases that verify GetLocalAttachmentsForUpload
121 // DropAttachments calls are passed through to the underlying AttachmentService. 121 // calls are passed through to the underlying AttachmentService.
122 122
123 } // namespace 123 } // namespace
124 124
125 } // namespace syncer 125 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/api/sync_data.cc ('k') | sync/internal_api/attachments/attachment_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698