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

Side by Side Diff: sync/internal_api/test/sync_manager_for_profile_sync_test.h

Issue 67683005: Clean up TestProfileSyncService and related tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 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 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 SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_ 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_ 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "sync/internal_api/sync_manager_impl.h" 12 #include "sync/internal_api/sync_manager_impl.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 // This class is used to help implement the TestProfileSyncService. 16 // This class is used to help implement the TestProfileSyncService.
17 // Those tests try to test sync without instantiating a real backend. 17 // Those tests try to test sync without instantiating a real backend.
18 class SyncManagerForProfileSyncTest 18 class SyncManagerForProfileSyncTest
19 : public syncer::SyncManagerImpl { 19 : public syncer::SyncManagerImpl {
20 public: 20 public:
21 SyncManagerForProfileSyncTest(std::string name, 21 SyncManagerForProfileSyncTest(std::string name,
22 base::Closure init_callback, 22 base::Closure init_callback);
23 bool set_initial_sync_ended);
24 virtual ~SyncManagerForProfileSyncTest(); 23 virtual ~SyncManagerForProfileSyncTest();
25 virtual void NotifyInitializationSuccess() OVERRIDE; 24 virtual void NotifyInitializationSuccess() OVERRIDE;
26 25
27 private: 26 private:
28 base::Closure init_callback_; 27 base::Closure init_callback_;
29 bool set_initial_sync_ended_;
30 }; 28 };
31 29
32 } // namespace syncer 30 } // namespace syncer
33 31
34 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_ 32 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698