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/internal_api/attachments/fake_attachment_store_unittest.cc

Issue 270633005: Move code from sync/api/attachments to sync/internal_api/attachments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop some unneeded deps and trim DEPS. Created 6 years, 7 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 | Annotate | Revision Log
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/attachments/fake_attachment_store.h" 5 #include "sync/internal_api/public/attachments/fake_attachment_store.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ref_counted_memory.h" 8 #include "base/memory/ref_counted_memory.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "sync/api/attachments/attachment.h" 11 #include "sync/api/attachments/attachment.h"
12 #include "sync/protocol/sync.pb.h" 12 #include "sync/protocol/sync.pb.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace syncer { 15 namespace syncer {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 // Drop again, see that no error occurs. 231 // Drop again, see that no error occurs.
232 ids.clear(); 232 ids.clear();
233 ids.push_back(attachment1.GetId()); 233 ids.push_back(attachment1.GetId());
234 store.Drop(ids, drop_callback); 234 store.Drop(ids, drop_callback);
235 ClearAndPumpLoop(); 235 ClearAndPumpLoop();
236 EXPECT_EQ(result, AttachmentStore::SUCCESS); 236 EXPECT_EQ(result, AttachmentStore::SUCCESS);
237 } 237 }
238 238
239 } // namespace syncer 239 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/attachments/fake_attachment_store.cc ('k') | sync/internal_api/attachments/fake_attachment_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698