OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/password_manager/core/browser/password_syncable_service.h" | 5 #include "components/password_manager/core/browser/password_syncable_service.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 }; | 155 }; |
156 | 156 |
157 // Mock implementation of SyncChangeProcessor. | 157 // Mock implementation of SyncChangeProcessor. |
158 class MockSyncChangeProcessor : public syncer::SyncChangeProcessor { | 158 class MockSyncChangeProcessor : public syncer::SyncChangeProcessor { |
159 public: | 159 public: |
160 MockSyncChangeProcessor() {} | 160 MockSyncChangeProcessor() {} |
161 | 161 |
162 MOCK_METHOD2(ProcessSyncChanges, | 162 MOCK_METHOD2(ProcessSyncChanges, |
163 SyncError(const tracked_objects::Location&, | 163 SyncError(const tracked_objects::Location&, |
164 const SyncChangeList& list)); | 164 const SyncChangeList& list)); |
165 virtual SyncDataList GetAllSyncData(syncer::ModelType type) const OVERRIDE { | 165 virtual SyncDataList GetAllSyncData(syncer::ModelType type) const override { |
166 NOTREACHED(); | 166 NOTREACHED(); |
167 return SyncDataList(); | 167 return SyncDataList(); |
168 } | 168 } |
169 | 169 |
170 private: | 170 private: |
171 DISALLOW_COPY_AND_ASSIGN(MockSyncChangeProcessor); | 171 DISALLOW_COPY_AND_ASSIGN(MockSyncChangeProcessor); |
172 }; | 172 }; |
173 | 173 |
174 // Convenience wrapper around a PasswordSyncableService and PasswordStore | 174 // Convenience wrapper around a PasswordSyncableService and PasswordStore |
175 // pair. | 175 // pair. |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 autofill::PasswordForm form; | 512 autofill::PasswordForm form; |
513 form.signon_realm = kSignonRealm; | 513 form.signon_realm = kSignonRealm; |
514 PasswordStoreChangeList list; | 514 PasswordStoreChangeList list; |
515 list.push_back(PasswordStoreChange(PasswordStoreChange::ADD, form)); | 515 list.push_back(PasswordStoreChange(PasswordStoreChange::ADD, form)); |
516 service()->ActOnPasswordStoreChanges(list); | 516 service()->ActOnPasswordStoreChanges(list); |
517 } | 517 } |
518 | 518 |
519 } // namespace | 519 } // namespace |
520 | 520 |
521 } // namespace password_manager | 521 } // namespace password_manager |
OLD | NEW |