Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #include "base/time/time.h" | |
|
Nicolas Zea
2015/10/28 20:33:18
nit: is this needed? (looks like you can leave tim
maxbogue
2015/10/28 23:19:11
Done.
| |
| 11 | 12 |
| 12 using content::BrowserThread; | 13 using content::BrowserThread; |
| 13 | 14 |
| 15 void EmptyNetworkTimeUpdate(const base::Time&, | |
| 16 const base::TimeDelta&, | |
| 17 const base::TimeDelta&) {} | |
| 18 | |
| 14 SyncServiceObserverMock::SyncServiceObserverMock() { | 19 SyncServiceObserverMock::SyncServiceObserverMock() { |
| 15 } | 20 } |
| 16 | 21 |
| 17 SyncServiceObserverMock::~SyncServiceObserverMock() { | 22 SyncServiceObserverMock::~SyncServiceObserverMock() { |
| 18 } | 23 } |
| 19 | 24 |
| 20 ThreadNotifier::ThreadNotifier(base::Thread* notify_thread) | 25 ThreadNotifier::ThreadNotifier(base::Thread* notify_thread) |
| 21 : done_event_(false, false), | 26 : done_event_(false, false), |
| 22 notify_thread_(notify_thread) {} | 27 notify_thread_(notify_thread) {} |
| 23 | 28 |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 37 } | 42 } |
| 38 | 43 |
| 39 ThreadNotifier::~ThreadNotifier() {} | 44 ThreadNotifier::~ThreadNotifier() {} |
| 40 | 45 |
| 41 void ThreadNotifier::NotifyTask(int type, | 46 void ThreadNotifier::NotifyTask(int type, |
| 42 const content::NotificationSource& source, | 47 const content::NotificationSource& source, |
| 43 const content::NotificationDetails& details) { | 48 const content::NotificationDetails& details) { |
| 44 content::NotificationService::current()->Notify(type, source, details); | 49 content::NotificationService::current()->Notify(type, source, details); |
| 45 done_event_.Signal(); | 50 done_event_.Signal(); |
| 46 } | 51 } |
| OLD | NEW |