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

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

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address 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 CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 SigninManager* signin, 75 SigninManager* signin,
76 ProfileSyncService::StartBehavior behavior, 76 ProfileSyncService::StartBehavior behavior,
77 bool synchronous_backend_initialization, 77 bool synchronous_backend_initialization,
78 const base::Closure& callback); 78 const base::Closure& callback);
79 79
80 virtual ~TestProfileSyncService(); 80 virtual ~TestProfileSyncService();
81 81
82 void SetInitialSyncEndedForAllTypes(); 82 void SetInitialSyncEndedForAllTypes();
83 83
84 virtual void OnBackendInitialized( 84 virtual void OnBackendInitialized(
85 const csync::WeakHandle<csync::JsBackend>& backend, 85 const syncer::WeakHandle<syncer::JsBackend>& backend,
86 bool success) OVERRIDE; 86 bool success) OVERRIDE;
87 87
88 virtual void Observe(int type, 88 virtual void Observe(int type,
89 const content::NotificationSource& source, 89 const content::NotificationSource& source,
90 const content::NotificationDetails& details) OVERRIDE; 90 const content::NotificationDetails& details) OVERRIDE;
91 91
92 // If this is called, configuring data types will require a syncer 92 // If this is called, configuring data types will require a syncer
93 // nudge. 93 // nudge.
94 void dont_set_initial_sync_ended_on_init(); 94 void dont_set_initial_sync_ended_on_init();
95 void set_synchronous_sync_configuration(); 95 void set_synchronous_sync_configuration();
96 96
97 void fail_initial_download(); 97 void fail_initial_download();
98 void set_use_real_database(); 98 void set_use_real_database();
99 99
100 csync::TestIdFactory* id_factory(); 100 syncer::TestIdFactory* id_factory();
101 101
102 // Override of ProfileSyncService::GetBackendForTest() with a more 102 // Override of ProfileSyncService::GetBackendForTest() with a more
103 // specific return type (since C++ supports covariant return types) 103 // specific return type (since C++ supports covariant return types)
104 // that is made public. 104 // that is made public.
105 virtual browser_sync::SyncBackendHostForProfileSyncTest* 105 virtual browser_sync::SyncBackendHostForProfileSyncTest*
106 GetBackendForTest() OVERRIDE; 106 GetBackendForTest() OVERRIDE;
107 107
108 protected: 108 protected:
109 virtual void CreateBackend() OVERRIDE; 109 virtual void CreateBackend() OVERRIDE;
110 110
111 private: 111 private:
112 csync::TestIdFactory id_factory_; 112 syncer::TestIdFactory id_factory_;
113 113
114 bool synchronous_backend_initialization_; 114 bool synchronous_backend_initialization_;
115 115
116 // Set to true when a mock data type manager is being used and the configure 116 // Set to true when a mock data type manager is being used and the configure
117 // step is performed synchronously. 117 // step is performed synchronously.
118 bool synchronous_sync_configuration_; 118 bool synchronous_sync_configuration_;
119 119
120 base::Closure callback_; 120 base::Closure callback_;
121 bool set_initial_sync_ended_on_init_; 121 bool set_initial_sync_ended_on_init_;
122 122
123 bool fail_initial_download_; 123 bool fail_initial_download_;
124 bool use_real_database_; 124 bool use_real_database_;
125 }; 125 };
126 126
127 127
128 128
129 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 129 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/test_http_bridge_factory.cc ('k') | chrome/browser/sync/test_profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698