summaryrefslogtreecommitdiff
path: root/chromium/components/browser_sync/test_profile_sync_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/browser_sync/test_profile_sync_service.cc')
-rw-r--r--chromium/components/browser_sync/test_profile_sync_service.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/chromium/components/browser_sync/test_profile_sync_service.cc b/chromium/components/browser_sync/test_profile_sync_service.cc
new file mode 100644
index 00000000000..c7222ae5ea0
--- /dev/null
+++ b/chromium/components/browser_sync/test_profile_sync_service.cc
@@ -0,0 +1,36 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/browser_sync/test_profile_sync_service.h"
+
+#include <utility>
+
+namespace browser_sync {
+
+syncer::TestIdFactory* TestProfileSyncService::id_factory() {
+ return &id_factory_;
+}
+
+syncer::WeakHandle<syncer::JsEventHandler>
+TestProfileSyncService::GetJsEventHandler() {
+ return syncer::WeakHandle<syncer::JsEventHandler>();
+}
+
+TestProfileSyncService::TestProfileSyncService(
+ ProfileSyncService::InitParams init_params)
+ : ProfileSyncService(std::move(init_params)) {}
+
+TestProfileSyncService::~TestProfileSyncService() {}
+
+void TestProfileSyncService::OnConfigureDone(
+ const syncer::DataTypeManager::ConfigureResult& result) {
+ ProfileSyncService::OnConfigureDone(result);
+ base::MessageLoop::current()->QuitWhenIdle();
+}
+
+syncer::UserShare* TestProfileSyncService::GetUserShare() const {
+ return backend_->GetUserShare();
+}
+
+} // namespace browser_sync