| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 371 |
| 372 ACTION_P2(ReturnNewDataTypeManagerWithDebugListener, | 372 ACTION_P2(ReturnNewDataTypeManagerWithDebugListener, |
| 373 sync_client, | 373 sync_client, |
| 374 debug_listener) { | 374 debug_listener) { |
| 375 return new syncer::DataTypeManagerImpl(sync_client, arg0, debug_listener, | 375 return new syncer::DataTypeManagerImpl(sync_client, arg0, debug_listener, |
| 376 arg2, arg3, arg4, arg5); | 376 arg2, arg3, arg4, arg5); |
| 377 } | 377 } |
| 378 | 378 |
| 379 class MockPersonalDataManager : public PersonalDataManager { | 379 class MockPersonalDataManager : public PersonalDataManager { |
| 380 public: | 380 public: |
| 381 MockPersonalDataManager() : PersonalDataManager("en-US") {} | 381 MockPersonalDataManager() |
| 382 : PersonalDataManager("en-US", nullptr /* ukm_service */) {} |
| 382 MOCK_CONST_METHOD0(IsDataLoaded, bool()); | 383 MOCK_CONST_METHOD0(IsDataLoaded, bool()); |
| 383 MOCK_METHOD0(LoadProfiles, void()); | 384 MOCK_METHOD0(LoadProfiles, void()); |
| 384 MOCK_METHOD0(LoadCreditCards, void()); | 385 MOCK_METHOD0(LoadCreditCards, void()); |
| 385 MOCK_METHOD0(Refresh, void()); | 386 MOCK_METHOD0(Refresh, void()); |
| 386 }; | 387 }; |
| 387 | 388 |
| 388 template <class T> | 389 template <class T> |
| 389 class AddAutofillHelper; | 390 class AddAutofillHelper; |
| 390 | 391 |
| 391 class ProfileSyncServiceAutofillTest | 392 class ProfileSyncServiceAutofillTest |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1552 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); | 1553 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); |
| 1553 EXPECT_EQ(3U, sync_entries.size()); | 1554 EXPECT_EQ(3U, sync_entries.size()); |
| 1554 EXPECT_EQ(0U, sync_profiles.size()); | 1555 EXPECT_EQ(0U, sync_profiles.size()); |
| 1555 for (size_t i = 0; i < sync_entries.size(); i++) { | 1556 for (size_t i = 0; i < sync_entries.size(); i++) { |
| 1556 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() << ", " | 1557 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() << ", " |
| 1557 << sync_entries[i].key().value(); | 1558 << sync_entries[i].key().value(); |
| 1558 } | 1559 } |
| 1559 } | 1560 } |
| 1560 | 1561 |
| 1561 } // namespace browser_sync | 1562 } // namespace browser_sync |
| OLD | NEW |