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

Side by Side Diff: components/sync/model/attachments/attachment_service_proxy_for_test.h

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 #ifndef COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TEST_H_ 5 #ifndef COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TEST_H_
6 #define COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TEST_H_ 6 #define COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "components/sync/api/attachments/attachment_service_proxy.h" 12 #include "components/sync/model/attachments/attachment_service_proxy.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 // An self-contained AttachmentServiceProxy to reduce boilerplate code in tests. 16 // An self-contained AttachmentServiceProxy to reduce boilerplate code in tests.
17 // 17 //
18 // Constructs and owns an AttachmentService suitable for use in tests. 18 // Constructs and owns an AttachmentService suitable for use in tests.
19 // NOTE: This class does not require the current thread to have a MessageLoop, 19 // NOTE: This class does not require the current thread to have a MessageLoop,
20 // however all methods will effectively become no-op stubs in that case. 20 // however all methods will effectively become no-op stubs in that case.
21 class AttachmentServiceProxyForTest : public AttachmentServiceProxy { 21 class AttachmentServiceProxyForTest : public AttachmentServiceProxy {
22 public: 22 public:
(...skipping 18 matching lines...) Expand all
41 DISALLOW_COPY_AND_ASSIGN(OwningCore); 41 DISALLOW_COPY_AND_ASSIGN(OwningCore);
42 }; 42 };
43 43
44 AttachmentServiceProxyForTest( 44 AttachmentServiceProxyForTest(
45 const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner, 45 const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner,
46 const scoped_refptr<Core>& core); 46 const scoped_refptr<Core>& core);
47 }; 47 };
48 48
49 } // namespace syncer 49 } // namespace syncer
50 50
51 #endif // COMPONENTS_SYNC_API_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TEST_H_ 51 #endif // COMPONENTS_SYNC_MODEL_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TEST_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698