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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
14 #include "chrome/browser/sync/profile_sync_service_mock.h" | 14 #include "components/browser_sync/browser/profile_sync_service_mock.h" |
15 #include "components/sync_driver/sync_service_observer.h" | 15 #include "components/sync_driver/sync_service_observer.h" |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 #include "content/public/browser/notification_service.h" | 17 #include "content/public/browser/notification_service.h" |
18 #include "content/public/browser/notification_source.h" | 18 #include "content/public/browser/notification_source.h" |
19 #include "content/public/browser/notification_types.h" | 19 #include "content/public/browser/notification_types.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 class Thread; | 23 class Thread; |
24 class Time; | 24 class Time; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // A utility used by sync tests to create a TestingProfile with a Google | 97 // A utility used by sync tests to create a TestingProfile with a Google |
98 // Services username stored in a (Testing)PrefService. | 98 // Services username stored in a (Testing)PrefService. |
99 scoped_ptr<TestingProfile> MakeSignedInTestingProfile(); | 99 scoped_ptr<TestingProfile> MakeSignedInTestingProfile(); |
100 | 100 |
101 // Helper routine to be used in conjunction with | 101 // Helper routine to be used in conjunction with |
102 // BrowserContextKeyedServiceFactory::SetTestingFactory(). | 102 // BrowserContextKeyedServiceFactory::SetTestingFactory(). |
103 scoped_ptr<KeyedService> BuildMockProfileSyncService( | 103 scoped_ptr<KeyedService> BuildMockProfileSyncService( |
104 content::BrowserContext* context); | 104 content::BrowserContext* context); |
105 | 105 |
106 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ | 106 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ |
OLD | NEW |