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

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

Issue 8938013: [Sync] Make SyncBackendHost::Core use a WeakHandle to its host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 27 matching lines...) Expand all
38 bool synchronous_init, 38 bool synchronous_init,
39 bool fail_initial_download); 39 bool fail_initial_download);
40 virtual ~SyncBackendHostForProfileSyncTest(); 40 virtual ~SyncBackendHostForProfileSyncTest();
41 41
42 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&)); 42 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&));
43 43
44 // Called when a nudge comes in. 44 // Called when a nudge comes in.
45 void SimulateSyncCycleCompletedInitialSyncEnded( 45 void SimulateSyncCycleCompletedInitialSyncEnded(
46 const tracked_objects::Location&); 46 const tracked_objects::Location&);
47 47
48 virtual sync_api::HttpPostProviderFactory* MakeHttpBridgeFactory(
49 const scoped_refptr<net::URLRequestContextGetter>& getter) OVERRIDE;
50
51 virtual void StartConfiguration(const base::Closure& callback) OVERRIDE; 48 virtual void StartConfiguration(const base::Closure& callback) OVERRIDE;
52 49
53 static void SetDefaultExpectationsForWorkerCreation(ProfileMock* profile); 50 static void SetDefaultExpectationsForWorkerCreation(ProfileMock* profile);
54 51
55 static void SetHistoryServiceExpectations(ProfileMock* profile); 52 static void SetHistoryServiceExpectations(ProfileMock* profile);
56 53
57 protected: 54 protected:
58 virtual void InitCore(const Core::DoInitializeOptions& options) OVERRIDE; 55 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE;
59 56
60 private: 57 private:
61 bool synchronous_init_; 58 bool synchronous_init_;
62 bool fail_initial_download_; 59 bool fail_initial_download_;
63 }; 60 };
64 61
65 } // namespace browser_sync 62 } // namespace browser_sync
66 63
67 class TestProfileSyncService : public ProfileSyncService { 64 class TestProfileSyncService : public ProfileSyncService {
68 public: 65 public:
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 113
117 base::Closure callback_; 114 base::Closure callback_;
118 bool set_initial_sync_ended_on_init_; 115 bool set_initial_sync_ended_on_init_;
119 116
120 bool fail_initial_download_; 117 bool fail_initial_download_;
121 }; 118 };
122 119
123 120
124 121
125 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 122 #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