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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 | 51 |
52 // A utility used by sync tests to create a TestingProfile with a Google | 52 // A utility used by sync tests to create a TestingProfile with a Google |
53 // Services username stored in a (Testing)PrefService. | 53 // Services username stored in a (Testing)PrefService. |
54 std::unique_ptr<TestingProfile> MakeSignedInTestingProfile(); | 54 std::unique_ptr<TestingProfile> MakeSignedInTestingProfile(); |
55 | 55 |
56 // Helper routine to be used in conjunction with | 56 // Helper routine to be used in conjunction with |
57 // BrowserContextKeyedServiceFactory::SetTestingFactory(). | 57 // BrowserContextKeyedServiceFactory::SetTestingFactory(). |
58 std::unique_ptr<KeyedService> BuildMockProfileSyncService( | 58 std::unique_ptr<KeyedService> BuildMockProfileSyncService( |
59 content::BrowserContext* context); | 59 content::BrowserContext* context); |
60 | 60 |
61 std::unique_ptr<KeyedService> BuildNiceMockProfileSyncService( | |
Peter Kasting
2017/03/28 21:38:39
Nit: Add comment about how this is distinct from t
sath
2017/03/29 06:26:15
Before my changes in class RecentTabsSubMenuModel
Peter Kasting
2017/03/29 07:20:45
Did the "uninteresting call"s result in test failu
| |
62 content::BrowserContext* context); | |
63 | |
61 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ | 64 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ |
OLD | NEW |