Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / sync / internal_api / test / sync_manager_for_profile_sync_test.h
blob84933864b65e77fa4a6c037e83eb39f38d3f8f79
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.
5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_
8 #include <string>
10 #include "base/callback.h"
11 #include "base/compiler_specific.h"
12 #include "sync/internal_api/sync_manager_impl.h"
14 namespace syncer {
16 // This class is used to help implement the TestProfileSyncService.
17 // Those tests try to test sync without instantiating a real backend.
18 class SyncManagerForProfileSyncTest
19 : public syncer::SyncManagerImpl {
20 public:
21 SyncManagerForProfileSyncTest(std::string name,
22 base::Closure init_callback);
23 virtual ~SyncManagerForProfileSyncTest();
24 virtual void NotifyInitializationSuccess() OVERRIDE;
26 private:
27 base::Closure init_callback_;
30 } // namespace syncer
32 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_