| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/guid.h" | 9 #include "base/guid.h" |
| 10 #include "base/hash.h" | 10 #include "base/hash.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/browser/sync/test/integration/passwords_helper.h" | 15 #include "chrome/browser/sync/test/integration/passwords_helper.h" |
| 16 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 16 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| 17 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" | 17 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
| 18 #include "chrome/browser/sync/test/integration/sync_test.h" | 18 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 19 #include "sync/internal_api/public/engine/model_safe_worker.h" | 19 #include "components/sync/engine/model_safe_worker.h" |
| 20 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 20 #include "components/sync/sessions/sync_session_snapshot.h" |
| 21 | 21 |
| 22 using passwords_helper::AddLogin; | 22 using passwords_helper::AddLogin; |
| 23 using passwords_helper::AllProfilesContainSamePasswordForms; | 23 using passwords_helper::AllProfilesContainSamePasswordForms; |
| 24 using passwords_helper::AllProfilesContainSamePasswordFormsAsVerifier; | 24 using passwords_helper::AllProfilesContainSamePasswordFormsAsVerifier; |
| 25 using passwords_helper::AwaitAllProfilesContainSamePasswordForms; | 25 using passwords_helper::AwaitAllProfilesContainSamePasswordForms; |
| 26 using passwords_helper::AwaitProfileContainsSamePasswordFormsAsVerifier; | 26 using passwords_helper::AwaitProfileContainsSamePasswordFormsAsVerifier; |
| 27 using passwords_helper::CreateTestPasswordForm; | 27 using passwords_helper::CreateTestPasswordForm; |
| 28 using passwords_helper::GetPasswordCount; | 28 using passwords_helper::GetPasswordCount; |
| 29 using passwords_helper::GetPasswordStore; | 29 using passwords_helper::GetPasswordStore; |
| 30 using passwords_helper::GetVerifierPasswordCount; | 30 using passwords_helper::GetVerifierPasswordCount; |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 258 |
| 259 // Blocks and waits for password forms in all profiles to match. | 259 // Blocks and waits for password forms in all profiles to match. |
| 260 ASSERT_TRUE(AwaitAllProfilesContainSamePasswordForms()); | 260 ASSERT_TRUE(AwaitAllProfilesContainSamePasswordForms()); |
| 261 | 261 |
| 262 // Check that total number of passwords is as expected. | 262 // Check that total number of passwords is as expected. |
| 263 for (int i = 0; i < num_clients(); ++i) { | 263 for (int i = 0; i < num_clients(); ++i) { |
| 264 ASSERT_EQ(GetPasswordCount(i), init_password_count + num_clients()) << | 264 ASSERT_EQ(GetPasswordCount(i), init_password_count + num_clients()) << |
| 265 "Total password count is wrong."; | 265 "Total password count is wrong."; |
| 266 } | 266 } |
| 267 } | 267 } |
| OLD | NEW |