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

Side by Side Diff: chrome/browser/sync/abstract_profile_sync_service_test.h

Issue 10911073: NOT FOR COMMIT: Add DeviceInfo type and ChangeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes from review comments Created 8 years, 3 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 CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ 5 #ifndef CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_
6 #define CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ 6 #define CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 16 matching lines...) Expand all
27 27
28 namespace syncer { 28 namespace syncer {
29 struct UserShare; 29 struct UserShare;
30 } // namespace syncer 30 } // namespace syncer
31 31
32 class ProfileSyncServiceTestHelper { 32 class ProfileSyncServiceTestHelper {
33 public: 33 public:
34 static const std::string GetTagForType(syncer::ModelType model_type); 34 static const std::string GetTagForType(syncer::ModelType model_type);
35 35
36 static bool CreateRoot(syncer::ModelType model_type, 36 static bool CreateRoot(syncer::ModelType model_type,
37 syncer::UserShare* service, 37 syncer::UserShare* service);
38 syncer::TestIdFactory* ids);
39 38
40 static syncer::ImmutableChangeRecordList MakeSingletonChangeRecordList( 39 static syncer::ImmutableChangeRecordList MakeSingletonChangeRecordList(
41 int64 node_id, syncer::ChangeRecord::Action action); 40 int64 node_id, syncer::ChangeRecord::Action action);
42 41
43 // Deletions must provide an EntitySpecifics for the deleted data. 42 // Deletions must provide an EntitySpecifics for the deleted data.
44 static syncer::ImmutableChangeRecordList 43 static syncer::ImmutableChangeRecordList
45 MakeSingletonDeletionChangeRecordList( 44 MakeSingletonDeletionChangeRecordList(
46 int64 node_id, 45 int64 node_id,
47 const sync_pb::EntitySpecifics& specifics); 46 const sync_pb::EntitySpecifics& specifics);
48 }; 47 };
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 private: 80 private:
82 void CreateRootCallback(); 81 void CreateRootCallback();
83 82
84 base::Closure callback_; 83 base::Closure callback_;
85 AbstractProfileSyncServiceTest* test_; 84 AbstractProfileSyncServiceTest* test_;
86 syncer::ModelType model_type_; 85 syncer::ModelType model_type_;
87 bool success_; 86 bool success_;
88 }; 87 };
89 88
90 #endif // CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ 89 #endif // CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/abstract_profile_sync_service_test.cc » ('j') | chrome/browser/sync/glue/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698