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

Side by Side Diff: chrome/browser/sync/test_profile_sync_service.h

Issue 10791002: Finish commit 146665. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 26 matching lines...) Expand all
37 const base::WeakPtr<SyncPrefs>& sync_prefs, 37 const base::WeakPtr<SyncPrefs>& sync_prefs,
38 const base::WeakPtr<InvalidatorStorage>& invalidator_storage, 38 const base::WeakPtr<InvalidatorStorage>& invalidator_storage,
39 bool set_initial_sync_ended_on_init, 39 bool set_initial_sync_ended_on_init,
40 bool synchronous_init, 40 bool synchronous_init,
41 bool fail_initial_download, 41 bool fail_initial_download,
42 bool use_real_database); 42 bool use_real_database);
43 virtual ~SyncBackendHostForProfileSyncTest(); 43 virtual ~SyncBackendHostForProfileSyncTest();
44 44
45 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&)); 45 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&));
46 46
47 // Called when a nudge comes in. 47 virtual void RequestConfigureSyncer(
48 void SimulateSyncCycleCompletedInitialSyncEnded( 48 syncer::ConfigureReason reason,
49 const tracked_objects::Location&); 49 syncer::ModelTypeSet types_to_config,
50 50 const syncer::ModelSafeRoutingInfo& routing_info,
51 virtual void StartConfiguration(const base::Closure& callback) OVERRIDE; 51 const base::Callback<void(syncer::ModelTypeSet)>& ready_task,
52 const base::Closure& retry_callback) OVERRIDE;
52 53
53 static void SetHistoryServiceExpectations(ProfileMock* profile); 54 static void SetHistoryServiceExpectations(ProfileMock* profile);
54 55
55 protected: 56 protected:
56 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; 57 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE;
57 58
58 private: 59 private:
59 bool synchronous_init_; 60 bool synchronous_init_;
60 bool fail_initial_download_; 61 bool fail_initial_download_;
61 bool use_real_database_; 62 bool use_real_database_;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 base::Closure callback_; 120 base::Closure callback_;
120 bool set_initial_sync_ended_on_init_; 121 bool set_initial_sync_ended_on_init_;
121 122
122 bool fail_initial_download_; 123 bool fail_initial_download_;
123 bool use_real_database_; 124 bool use_real_database_;
124 }; 125 };
125 126
126 127
127 128
128 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 129 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/sync/test_profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698