| 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 | 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 Loading... |
| 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 } |
| OLD | NEW |