| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/location.h" |
| 9 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
| 10 #include "base/task.h" | 11 #include "base/task.h" |
| 11 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
| 12 #include "base/time.h" | 13 #include "base/time.h" |
| 13 #include "base/tracked.h" | |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "chrome/browser/password_manager/password_store.h" | 15 #include "chrome/browser/password_manager/password_store.h" |
| 16 #include "chrome/browser/prefs/pref_service.h" | 16 #include "chrome/browser/prefs/pref_service.h" |
| 17 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" | 17 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" |
| 18 #include "chrome/browser/sync/glue/password_change_processor.h" | 18 #include "chrome/browser/sync/glue/password_change_processor.h" |
| 19 #include "chrome/browser/sync/glue/password_data_type_controller.h" | 19 #include "chrome/browser/sync/glue/password_data_type_controller.h" |
| 20 #include "chrome/browser/sync/glue/password_model_associator.h" | 20 #include "chrome/browser/sync/glue/password_model_associator.h" |
| 21 #include "chrome/browser/sync/internal_api/read_node.h" | 21 #include "chrome/browser/sync/internal_api/read_node.h" |
| 22 #include "chrome/browser/sync/internal_api/read_transaction.h" | 22 #include "chrome/browser/sync/internal_api/read_transaction.h" |
| 23 #include "chrome/browser/sync/internal_api/write_node.h" | 23 #include "chrome/browser/sync/internal_api/write_node.h" |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 AddPasswordEntriesTask node_task(this, sync_forms); | 615 AddPasswordEntriesTask node_task(this, sync_forms); |
| 616 | 616 |
| 617 StartSyncService(&root_task, &node_task); | 617 StartSyncService(&root_task, &node_task); |
| 618 | 618 |
| 619 std::vector<PasswordForm> new_sync_forms; | 619 std::vector<PasswordForm> new_sync_forms; |
| 620 GetPasswordEntriesFromSyncDB(&new_sync_forms); | 620 GetPasswordEntriesFromSyncDB(&new_sync_forms); |
| 621 | 621 |
| 622 EXPECT_EQ(1U, new_sync_forms.size()); | 622 EXPECT_EQ(1U, new_sync_forms.size()); |
| 623 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0])); | 623 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0])); |
| 624 } | 624 } |
| OLD | NEW |