OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 #include "base/task.h" | 15 #include "base/task.h" |
16 #include "base/thread.h" | 16 #include "base/thread.h" |
17 #include "base/waitable_event.h" | 17 #include "base/waitable_event.h" |
18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
19 #include "chrome/browser/browser_thread.h" | 19 #include "chrome/browser/browser_thread.h" |
20 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/browser/webdata/web_database.h" | 21 #include "chrome/browser/webdata/web_database.h" |
22 #include "chrome/browser/sync/glue/bookmark_change_processor.h" | 22 #include "chrome/browser/sync/glue/bookmark_change_processor.h" |
23 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" | 23 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" |
24 #include "chrome/browser/sync/glue/bookmark_model_associator.h" | 24 #include "chrome/browser/sync/glue/bookmark_model_associator.h" |
25 #include "chrome/browser/sync/glue/change_processor.h" | 25 #include "chrome/browser/sync/glue/change_processor.h" |
26 #include "chrome/browser/sync/glue/data_type_manager_impl.h" | 26 #include "chrome/browser/sync/glue/data_type_manager_impl.h" |
27 #include "chrome/browser/sync/profile_sync_factory.h" | 27 #include "chrome/browser/sync/profile_sync_factory.h" |
28 #include "chrome/browser/sync/profile_sync_service.h" | 28 #include "chrome/browser/sync/profile_sync_service.h" |
29 #include "chrome/browser/sync/unrecoverable_error_handler.h" | 29 #include "chrome/browser/sync/unrecoverable_error_handler.h" |
30 #include "chrome/common/notification_details.h" | 30 #include "chrome/common/notification_details.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 const NotificationDetails& details) { | 180 const NotificationDetails& details) { |
181 NotificationService::current()->Notify(type, source, details); | 181 NotificationService::current()->Notify(type, source, details); |
182 done_event_.Signal(); | 182 done_event_.Signal(); |
183 } | 183 } |
184 | 184 |
185 base::WaitableEvent done_event_; | 185 base::WaitableEvent done_event_; |
186 base::Thread* notify_thread_; | 186 base::Thread* notify_thread_; |
187 }; | 187 }; |
188 | 188 |
189 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ | 189 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ |
OLD | NEW |