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

Side by Side Diff: components/sync_driver/fake_generic_change_processor.h

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_
6 #define COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ 6 #define COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_
7 7
8 #include "components/sync_driver/generic_change_processor.h" 8 #include "components/sync_driver/generic_change_processor.h"
9 9
10 #include "components/sync_driver/generic_change_processor_factory.h" 10 #include "components/sync_driver/generic_change_processor_factory.h"
11 #include "components/sync_driver/sync_api_component_factory.h" 11 #include "components/sync_driver/sync_api_component_factory.h"
12 #include "sync/api/sync_error.h" 12 #include "sync/api/sync_error.h"
13 13
14 namespace browser_sync { 14 namespace sync_driver {
15 15
16 // A fake GenericChangeProcessor that can return arbitrary values. 16 // A fake GenericChangeProcessor that can return arbitrary values.
17 class FakeGenericChangeProcessor : public GenericChangeProcessor { 17 class FakeGenericChangeProcessor : public GenericChangeProcessor {
18 public: 18 public:
19 FakeGenericChangeProcessor(SyncApiComponentFactory* sync_factory); 19 FakeGenericChangeProcessor(SyncApiComponentFactory* sync_factory);
20 virtual ~FakeGenericChangeProcessor(); 20 virtual ~FakeGenericChangeProcessor();
21 21
22 // Setters for GenericChangeProcessor implementation results. 22 // Setters for GenericChangeProcessor implementation results.
23 void set_sync_model_has_user_created_nodes(bool has_nodes); 23 void set_sync_model_has_user_created_nodes(bool has_nodes);
24 void set_sync_model_has_user_created_nodes_success(bool success); 24 void set_sync_model_has_user_created_nodes_success(bool success);
(...skipping 18 matching lines...) Expand all
43 }; 43 };
44 44
45 // Define a factory for FakeGenericChangeProcessor for convenience. 45 // Define a factory for FakeGenericChangeProcessor for convenience.
46 class FakeGenericChangeProcessorFactory : public GenericChangeProcessorFactory { 46 class FakeGenericChangeProcessorFactory : public GenericChangeProcessorFactory {
47 public: 47 public:
48 explicit FakeGenericChangeProcessorFactory( 48 explicit FakeGenericChangeProcessorFactory(
49 scoped_ptr<FakeGenericChangeProcessor> processor); 49 scoped_ptr<FakeGenericChangeProcessor> processor);
50 virtual ~FakeGenericChangeProcessorFactory(); 50 virtual ~FakeGenericChangeProcessorFactory();
51 virtual scoped_ptr<GenericChangeProcessor> CreateGenericChangeProcessor( 51 virtual scoped_ptr<GenericChangeProcessor> CreateGenericChangeProcessor(
52 syncer::UserShare* user_share, 52 syncer::UserShare* user_share,
53 browser_sync::DataTypeErrorHandler* error_handler, 53 DataTypeErrorHandler* error_handler,
54 const base::WeakPtr<syncer::SyncableService>& local_service, 54 const base::WeakPtr<syncer::SyncableService>& local_service,
55 const base::WeakPtr<syncer::SyncMergeResult>& merge_result, 55 const base::WeakPtr<syncer::SyncMergeResult>& merge_result,
56 SyncApiComponentFactory* sync_factory) OVERRIDE; 56 SyncApiComponentFactory* sync_factory) OVERRIDE;
57 57
58 private: 58 private:
59 scoped_ptr<FakeGenericChangeProcessor> processor_; 59 scoped_ptr<FakeGenericChangeProcessor> processor_;
60 DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory); 60 DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory);
61 }; 61 };
62 62
63 } // namespace browser_sync 63 } // namespace sync_driver
64 64
65 #endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ 65 #endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « components/sync_driver/fake_data_type_controller.cc ('k') | components/sync_driver/fake_generic_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698