• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "sync/internal_api/public/test/sync_manager_factory_for_profile_sync_test.h"
6 
7 #include "sync/internal_api/test/sync_manager_for_profile_sync_test.h"
8 
9 namespace syncer {
10 
SyncManagerFactoryForProfileSyncTest(base::Closure init_callback)11 SyncManagerFactoryForProfileSyncTest::SyncManagerFactoryForProfileSyncTest(
12     base::Closure init_callback)
13   : SyncManagerFactory(SyncManagerFactory::NORMAL),
14     init_callback_(init_callback) {
15 }
16 
~SyncManagerFactoryForProfileSyncTest()17 SyncManagerFactoryForProfileSyncTest::~SyncManagerFactoryForProfileSyncTest() {}
18 
19 scoped_ptr<syncer::SyncManager>
CreateSyncManager(std::string name)20 SyncManagerFactoryForProfileSyncTest::CreateSyncManager(std::string name) {
21   return scoped_ptr<syncer::SyncManager>(
22       new SyncManagerForProfileSyncTest(
23           name,
24           init_callback_));
25 }
26 
27 }  // namespace syncer
28