| 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 #include <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/prefs/pref_service.h" |
| 11 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 12 #include "base/test/test_timeouts.h" | 13 #include "base/test/test_timeouts.h" |
| 13 #include "base/time.h" | 14 #include "base/time.h" |
| 14 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 15 #include "chrome/browser/password_manager/mock_password_store.h" | 16 #include "chrome/browser/password_manager/mock_password_store.h" |
| 16 #include "chrome/browser/password_manager/password_store.h" | 17 #include "chrome/browser/password_manager/password_store.h" |
| 17 #include "chrome/browser/password_manager/password_store_factory.h" | 18 #include "chrome/browser/password_manager/password_store_factory.h" |
| 18 #include "chrome/browser/prefs/pref_service.h" | |
| 19 #include "chrome/browser/signin/signin_manager.h" | 19 #include "chrome/browser/signin/signin_manager.h" |
| 20 #include "chrome/browser/signin/signin_manager_factory.h" | 20 #include "chrome/browser/signin/signin_manager_factory.h" |
| 21 #include "chrome/browser/signin/token_service_factory.h" | 21 #include "chrome/browser/signin/token_service_factory.h" |
| 22 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" | 22 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" |
| 23 #include "chrome/browser/sync/glue/password_change_processor.h" | 23 #include "chrome/browser/sync/glue/password_change_processor.h" |
| 24 #include "chrome/browser/sync/glue/password_data_type_controller.h" | 24 #include "chrome/browser/sync/glue/password_data_type_controller.h" |
| 25 #include "chrome/browser/sync/glue/password_model_associator.h" | 25 #include "chrome/browser/sync/glue/password_model_associator.h" |
| 26 #include "chrome/browser/sync/profile_sync_components_factory.h" | 26 #include "chrome/browser/sync/profile_sync_components_factory.h" |
| 27 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" | 27 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" |
| 28 #include "chrome/browser/sync/profile_sync_service.h" | 28 #include "chrome/browser/sync/profile_sync_service.h" |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 CreateRootHelper create_root(this, syncer::PASSWORDS); | 610 CreateRootHelper create_root(this, syncer::PASSWORDS); |
| 611 StartSyncService(create_root.callback(), | 611 StartSyncService(create_root.callback(), |
| 612 base::Bind(&AddPasswordEntriesCallback, this, sync_forms)); | 612 base::Bind(&AddPasswordEntriesCallback, this, sync_forms)); |
| 613 | 613 |
| 614 std::vector<PasswordForm> new_sync_forms; | 614 std::vector<PasswordForm> new_sync_forms; |
| 615 GetPasswordEntriesFromSyncDB(&new_sync_forms); | 615 GetPasswordEntriesFromSyncDB(&new_sync_forms); |
| 616 | 616 |
| 617 EXPECT_EQ(1U, new_sync_forms.size()); | 617 EXPECT_EQ(1U, new_sync_forms.size()); |
| 618 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0])); | 618 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0])); |
| 619 } | 619 } |
| OLD | NEW |