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

Side by Side Diff: components/sync/engine/attachments/attachment_store_frontend_unittest.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 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
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 "components/sync/engine/attachments/attachment_store_frontend.h" 5 #include "components/sync/engine/attachments/attachment_store_frontend.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "components/sync/api/attachments/attachment.h"
15 #include "components/sync/api/attachments/attachment_id.h"
16 #include "components/sync/engine/attachments/attachment_store_backend.h" 14 #include "components/sync/engine/attachments/attachment_store_backend.h"
15 #include "components/sync/model/attachments/attachment.h"
16 #include "components/sync/model/attachments/attachment_id.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace syncer { 19 namespace syncer {
20 20
21 namespace { 21 namespace {
22 22
23 class MockAttachmentStore : public AttachmentStoreBackend { 23 class MockAttachmentStore : public AttachmentStoreBackend {
24 public: 24 public:
25 MockAttachmentStore(const base::Closure& init_called, 25 MockAttachmentStore(const base::Closure& init_called,
26 const base::Closure& read_called, 26 const base::Closure& read_called,
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 // Releasing referehce to AttachmentStoreFrontend should result in 229 // Releasing referehce to AttachmentStoreFrontend should result in
230 // MockAttachmentStore being deleted on backend loop. 230 // MockAttachmentStore being deleted on backend loop.
231 attachment_store_frontend_ = NULL; 231 attachment_store_frontend_ = NULL;
232 EXPECT_EQ(dtor_call_count_, 0); 232 EXPECT_EQ(dtor_call_count_, 0);
233 RunMessageLoop(); 233 RunMessageLoop();
234 EXPECT_EQ(dtor_call_count_, 1); 234 EXPECT_EQ(dtor_call_count_, 1);
235 } 235 }
236 236
237 } // namespace syncer 237 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698