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

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

Issue 535683002: Fix use-after-free in HDDDTC shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 3 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
« no previous file with comments | « chrome/browser/sync/test/integration/sync_errors_test.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11 matching lines...) Expand all
22 class ProfileOAuth2TokenService; 22 class ProfileOAuth2TokenService;
23 class ProfileSyncComponentsFactory; 23 class ProfileSyncComponentsFactory;
24 class ProfileSyncComponentsFactoryMock; 24 class ProfileSyncComponentsFactoryMock;
25 25
26 ACTION(ReturnNewDataTypeManager) { 26 ACTION(ReturnNewDataTypeManager) {
27 return new sync_driver::DataTypeManagerImpl(base::Closure(), 27 return new sync_driver::DataTypeManagerImpl(base::Closure(),
28 arg0, 28 arg0,
29 arg1, 29 arg1,
30 arg2, 30 arg2,
31 arg3, 31 arg3,
32 arg4, 32 arg4);
33 arg5);
34 } 33 }
35 34
36 namespace browser_sync { 35 namespace browser_sync {
37 36
38 class SyncBackendHostForProfileSyncTest : public SyncBackendHostImpl { 37 class SyncBackendHostForProfileSyncTest : public SyncBackendHostImpl {
39 public: 38 public:
40 SyncBackendHostForProfileSyncTest( 39 SyncBackendHostForProfileSyncTest(
41 Profile* profile, 40 Profile* profile,
42 invalidation::InvalidationService* invalidator, 41 invalidation::InvalidationService* invalidator,
43 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, 42 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler() 105 virtual syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler()
107 OVERRIDE; 106 OVERRIDE;
108 107
109 virtual bool NeedBackup() const OVERRIDE; 108 virtual bool NeedBackup() const OVERRIDE;
110 109
111 private: 110 private:
112 syncer::TestIdFactory id_factory_; 111 syncer::TestIdFactory id_factory_;
113 }; 112 };
114 113
115 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 114 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sync_errors_test.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698