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 COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
662 NOT_SIGNED_IN, // There is no signed in user. | 662 NOT_SIGNED_IN, // There is no signed in user. |
663 NOT_REQUESTED, // The user turned off sync. | 663 NOT_REQUESTED, // The user turned off sync. |
664 NOT_REQUESTED_NOT_SETUP, // The user turned off sync and setup completed | 664 NOT_REQUESTED_NOT_SETUP, // The user turned off sync and setup completed |
665 // is false. Might indicate a stop-and-clear. | 665 // is false. Might indicate a stop-and-clear. |
666 NEEDS_CONFIRMATION, // The user must confirm sync settings. | 666 NEEDS_CONFIRMATION, // The user must confirm sync settings. |
667 IS_MANAGED, // Sync is disallowed by enterprise policy. | 667 IS_MANAGED, // Sync is disallowed by enterprise policy. |
668 NOT_ALLOWED_BY_PLATFORM, // Sync is disallowed by the platform. | 668 NOT_ALLOWED_BY_PLATFORM, // Sync is disallowed by the platform. |
669 SYNC_INITIAL_STATE_LIMIT | 669 SYNC_INITIAL_STATE_LIMIT |
670 }; | 670 }; |
671 | 671 |
672 friend class PermissionUmaUtilTest; | |
pavely
2016/07/14 19:29:28
In your code you are using public virtual function
stefanocs
2016/07/15 01:05:02
I didn't use mock but I used sync pref to set the
| |
672 friend class ProfileSyncServicePasswordTest; | 673 friend class ProfileSyncServicePasswordTest; |
673 friend class SyncTest; | 674 friend class SyncTest; |
674 friend class TestProfileSyncService; | 675 friend class TestProfileSyncService; |
675 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState); | 676 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState); |
676 | 677 |
677 // Stops the sync engine. Does NOT set IsSyncRequested to false. Use | 678 // Stops the sync engine. Does NOT set IsSyncRequested to false. Use |
678 // RequestStop for that. |data_fate| controls whether the local sync data is | 679 // RequestStop for that. |data_fate| controls whether the local sync data is |
679 // deleted or kept when the engine shuts down. | 680 // deleted or kept when the engine shuts down. |
680 void StopImpl(SyncStopDataFate data_fate); | 681 void StopImpl(SyncStopDataFate data_fate); |
681 | 682 |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1020 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 1021 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
1021 | 1022 |
1022 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1023 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1023 }; | 1024 }; |
1024 | 1025 |
1025 bool ShouldShowActionOnUI( | 1026 bool ShouldShowActionOnUI( |
1026 const syncer::SyncProtocolError& error); | 1027 const syncer::SyncProtocolError& error); |
1027 | 1028 |
1028 | 1029 |
1029 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 1030 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |