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

Side by Side Diff: sync/api/fake_syncable_service.h

Issue 10662035: [Sync] Put everything in sync/api into csync namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_API_FAKE_SYNCABLE_SERVICE_H_ 5 #ifndef SYNC_API_FAKE_SYNCABLE_SERVICE_H_
6 #define SYNC_API_FAKE_SYNCABLE_SERVICE_H_ 6 #define SYNC_API_FAKE_SYNCABLE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "sync/api/syncable_service.h" 9 #include "sync/api/syncable_service.h"
10 10
11 namespace csync {
12
11 class SyncErrorFactory; 13 class SyncErrorFactory;
12 14
13 // A fake SyncableService that can return arbitrary values and maintains the 15 // A fake SyncableService that can return arbitrary values and maintains the
14 // syncing status. 16 // syncing status.
15 class FakeSyncableService : public SyncableService { 17 class FakeSyncableService : public SyncableService {
16 public: 18 public:
17 FakeSyncableService(); 19 FakeSyncableService();
18 virtual ~FakeSyncableService(); 20 virtual ~FakeSyncableService();
19 21
20 // Setters for SyncableService implementation results. 22 // Setters for SyncableService implementation results.
(...skipping 17 matching lines...) Expand all
38 const SyncChangeList& change_list) OVERRIDE; 40 const SyncChangeList& change_list) OVERRIDE;
39 41
40 private: 42 private:
41 scoped_ptr<SyncChangeProcessor> sync_processor_; 43 scoped_ptr<SyncChangeProcessor> sync_processor_;
42 SyncError merge_data_and_start_syncing_error_; 44 SyncError merge_data_and_start_syncing_error_;
43 SyncError process_sync_changes_error_; 45 SyncError process_sync_changes_error_;
44 bool syncing_; 46 bool syncing_;
45 syncable::ModelType type_; 47 syncable::ModelType type_;
46 }; 48 };
47 49
50 } // namespace csync
51
48 #endif // SYNC_API_FAKE_SYNCABLE_SERVICE_H_ 52 #endif // SYNC_API_FAKE_SYNCABLE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc ('k') | sync/api/fake_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698