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

Side by Side Diff: chrome/browser/sync/profile_sync_test_util.cc

Issue 1410013008: [Sync] Remove some http-related chrome deps from SyncBackendHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 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
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 #include "chrome/browser/sync/profile_sync_test_util.h" 5 #include "chrome/browser/sync/profile_sync_test_util.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 11
12 using content::BrowserThread; 12 using content::BrowserThread;
13 13
14 void EmptyNetworkTimeUpdate(const base::Time&,
15 const base::TimeDelta&,
16 const base::TimeDelta&) {}
17
14 SyncServiceObserverMock::SyncServiceObserverMock() { 18 SyncServiceObserverMock::SyncServiceObserverMock() {
15 } 19 }
16 20
17 SyncServiceObserverMock::~SyncServiceObserverMock() { 21 SyncServiceObserverMock::~SyncServiceObserverMock() {
18 } 22 }
19 23
20 ThreadNotifier::ThreadNotifier(base::Thread* notify_thread) 24 ThreadNotifier::ThreadNotifier(base::Thread* notify_thread)
21 : done_event_(false, false), 25 : done_event_(false, false),
22 notify_thread_(notify_thread) {} 26 notify_thread_(notify_thread) {}
23 27
(...skipping 13 matching lines...) Expand all
37 } 41 }
38 42
39 ThreadNotifier::~ThreadNotifier() {} 43 ThreadNotifier::~ThreadNotifier() {}
40 44
41 void ThreadNotifier::NotifyTask(int type, 45 void ThreadNotifier::NotifyTask(int type,
42 const content::NotificationSource& source, 46 const content::NotificationSource& source,
43 const content::NotificationDetails& details) { 47 const content::NotificationDetails& details) {
44 content::NotificationService::current()->Notify(type, source, details); 48 content::NotificationService::current()->Notify(type, source, details);
45 done_event_.Signal(); 49 done_event_.Signal();
46 } 50 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.h ('k') | chrome/browser/sync/test_profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698