OLD | NEW |
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_PROFILE_SYNC_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 } | 22 } |
23 | 23 |
24 ACTION_P(Notify, type) { | 24 ACTION_P(Notify, type) { |
25 content::NotificationService::current()->Notify( | 25 content::NotificationService::current()->Notify( |
26 type, | 26 type, |
27 content::NotificationService::AllSources(), | 27 content::NotificationService::AllSources(), |
28 content::NotificationService::NoDetails()); | 28 content::NotificationService::NoDetails()); |
29 } | 29 } |
30 | 30 |
31 ACTION(QuitUIMessageLoop) { | 31 ACTION(QuitUIMessageLoop) { |
32 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 32 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
33 base::MessageLoop::current()->Quit(); | 33 base::MessageLoop::current()->Quit(); |
34 } | 34 } |
35 | 35 |
36 class SyncServiceObserverMock : public sync_driver::SyncServiceObserver { | 36 class SyncServiceObserverMock : public sync_driver::SyncServiceObserver { |
37 public: | 37 public: |
38 SyncServiceObserverMock(); | 38 SyncServiceObserverMock(); |
39 virtual ~SyncServiceObserverMock(); | 39 virtual ~SyncServiceObserverMock(); |
40 | 40 |
41 MOCK_METHOD0(OnStateChanged, void()); | 41 MOCK_METHOD0(OnStateChanged, void()); |
42 }; | 42 }; |
(...skipping 15 matching lines...) Expand all Loading... |
58 | 58 |
59 void NotifyTask(int type, | 59 void NotifyTask(int type, |
60 const content::NotificationSource& source, | 60 const content::NotificationSource& source, |
61 const content::NotificationDetails& details); | 61 const content::NotificationDetails& details); |
62 | 62 |
63 base::WaitableEvent done_event_; | 63 base::WaitableEvent done_event_; |
64 base::Thread* notify_thread_; | 64 base::Thread* notify_thread_; |
65 }; | 65 }; |
66 | 66 |
67 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ | 67 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ |
OLD | NEW |