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

Unified Diff: components/sync/driver/fake_sync_service.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/driver/fake_sync_service.h ('k') | components/sync/driver/frontend_data_type_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/fake_sync_service.cc
diff --git a/components/sync/driver/fake_sync_service.cc b/components/sync/driver/fake_sync_service.cc
index ba6af8b62b48700f1fdb93141b65719bb44a93c4..ae2342af92d23434d078f11f380d510998760198 100644
--- a/components/sync/driver/fake_sync_service.cc
+++ b/components/sync/driver/fake_sync_service.cc
@@ -10,11 +10,11 @@
#include "components/sync/core/user_share.h"
#include "components/sync/driver/data_type_controller.h"
-namespace syncer {
+namespace sync_driver {
FakeSyncService::FakeSyncService()
: error_(GoogleServiceAuthError::NONE),
- user_share_(base::MakeUnique<UserShare>()) {}
+ user_share_(base::MakeUnique<syncer::UserShare>()) {}
FakeSyncService::~FakeSyncService() {}
@@ -30,10 +30,10 @@ bool FakeSyncService::IsSyncActive() const {
return false;
}
-void FakeSyncService::TriggerRefresh(const ModelTypeSet& types) {}
+void FakeSyncService::TriggerRefresh(const syncer::ModelTypeSet& types) {}
-ModelTypeSet FakeSyncService::GetActiveDataTypes() const {
- return ModelTypeSet();
+syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const {
+ return syncer::ModelTypeSet();
}
SyncClient* FakeSyncService::GetSyncClient() const {
@@ -52,18 +52,19 @@ bool FakeSyncService::CanSyncStart() const {
return false;
}
-void FakeSyncService::OnDataTypeRequestsSyncStartup(ModelType type) {}
+void FakeSyncService::OnDataTypeRequestsSyncStartup(syncer::ModelType type) {}
-void FakeSyncService::RequestStop(SyncService::SyncStopDataFate data_fate) {}
+void FakeSyncService::RequestStop(
+ sync_driver::SyncService::SyncStopDataFate data_fate) {}
void FakeSyncService::RequestStart() {}
-ModelTypeSet FakeSyncService::GetPreferredDataTypes() const {
- return ModelTypeSet();
+syncer::ModelTypeSet FakeSyncService::GetPreferredDataTypes() const {
+ return syncer::ModelTypeSet();
}
void FakeSyncService::OnUserChoseDatatypes(bool sync_everything,
- ModelTypeSet chosen_types) {}
+ syncer::ModelTypeSet chosen_types) {}
void FakeSyncService::SetFirstSetupComplete() {}
@@ -125,11 +126,12 @@ bool FakeSyncService::SetDecryptionPassphrase(const std::string& passphrase) {
return false;
}
-bool FakeSyncService::IsCryptographerReady(const BaseTransaction* trans) const {
+bool FakeSyncService::IsCryptographerReady(
+ const syncer::BaseTransaction* trans) const {
return false;
}
-UserShare* FakeSyncService::GetUserShare() const {
+syncer::UserShare* FakeSyncService::GetUserShare() const {
return user_share_.get();
}
@@ -138,16 +140,16 @@ LocalDeviceInfoProvider* FakeSyncService::GetLocalDeviceInfoProvider() const {
}
void FakeSyncService::RegisterDataTypeController(
- std::unique_ptr<DataTypeController> data_type_controller) {}
+ std::unique_ptr<sync_driver::DataTypeController> data_type_controller) {}
-void FakeSyncService::ReenableDatatype(ModelType type) {}
+void FakeSyncService::ReenableDatatype(syncer::ModelType type) {}
bool FakeSyncService::IsPassphraseRequired() const {
return false;
}
-ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const {
- return ModelTypeSet();
+syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const {
+ return syncer::ModelTypeSet();
}
FakeSyncService::SyncTokenStatus FakeSyncService::GetSyncTokenStatus() const {
@@ -158,7 +160,7 @@ std::string FakeSyncService::QuerySyncStatusSummaryString() {
return "";
}
-bool FakeSyncService::QueryDetailedSyncStatus(SyncStatus* result) {
+bool FakeSyncService::QueryDetailedSyncStatus(syncer::SyncStatus* result) {
return false;
}
@@ -170,8 +172,8 @@ std::string FakeSyncService::GetBackendInitializationStateString() const {
return std::string();
}
-SyncCycleSnapshot FakeSyncService::GetLastCycleSnapshot() const {
- return SyncCycleSnapshot();
+syncer::SyncCycleSnapshot FakeSyncService::GetLastCycleSnapshot() const {
+ return syncer::SyncCycleSnapshot();
}
base::Value* FakeSyncService::GetTypeStatusMap() const {
@@ -192,22 +194,22 @@ tracked_objects::Location FakeSyncService::unrecoverable_error_location()
}
void FakeSyncService::AddProtocolEventObserver(
- ProtocolEventObserver* observer) {}
+ browser_sync::ProtocolEventObserver* observer) {}
void FakeSyncService::RemoveProtocolEventObserver(
- ProtocolEventObserver* observer) {}
+ browser_sync::ProtocolEventObserver* observer) {}
void FakeSyncService::AddTypeDebugInfoObserver(
- TypeDebugInfoObserver* observer) {}
+ syncer::TypeDebugInfoObserver* observer) {}
void FakeSyncService::RemoveTypeDebugInfoObserver(
- TypeDebugInfoObserver* observer) {}
+ syncer::TypeDebugInfoObserver* observer) {}
-base::WeakPtr<JsController> FakeSyncService::GetJsController() {
- return base::WeakPtr<JsController>();
+base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() {
+ return base::WeakPtr<syncer::JsController>();
}
void FakeSyncService::GetAllNodes(
const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {}
-} // namespace syncer
+} // namespace sync_driver
« no previous file with comments | « components/sync/driver/fake_sync_service.h ('k') | components/sync/driver/frontend_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698