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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TEST_H _ 5 #ifndef COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TEST_H_
6 #define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TEST_H _ 6 #define COMPONENTS_SYNC_CORE_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 "sync/base/sync_export.h" 12 #include "components/sync/base/sync_export.h"
13 #include "sync/internal_api/public/attachments/attachment_service_proxy.h" 13 #include "components/sync/core/attachments/attachment_service_proxy.h"
14 14
15 namespace syncer { 15 namespace syncer {
16 16
17 // An self-contained AttachmentServiceProxy to reduce boilerplate code in tests. 17 // An self-contained AttachmentServiceProxy to reduce boilerplate code in tests.
18 // 18 //
19 // Constructs and owns an AttachmentService suitable for use in tests. 19 // Constructs and owns an AttachmentService suitable for use in tests.
20 // NOTE: This class does not require the current thread to have a MessageLoop, 20 // NOTE: This class does not require the current thread to have a MessageLoop,
21 // however all methods will effectively become no-op stubs in that case. 21 // however all methods will effectively become no-op stubs in that case.
22 class SYNC_EXPORT AttachmentServiceProxyForTest 22 class SYNC_EXPORT AttachmentServiceProxyForTest
23 : public AttachmentServiceProxy { 23 : public AttachmentServiceProxy {
(...skipping 19 matching lines...) Expand all
43 DISALLOW_COPY_AND_ASSIGN(OwningCore); 43 DISALLOW_COPY_AND_ASSIGN(OwningCore);
44 }; 44 };
45 45
46 AttachmentServiceProxyForTest( 46 AttachmentServiceProxyForTest(
47 const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner, 47 const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner,
48 const scoped_refptr<Core>& core); 48 const scoped_refptr<Core>& core);
49 }; 49 };
50 50
51 } // namespace syncer 51 } // namespace syncer
52 52
53 #endif // SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TES T_H_ 53 #endif // COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_FOR_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698