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/rand_util.h" | 12 #include "base/rand_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "build/build_config.h" |
13 #include "chrome/browser/sync/test/integration/passwords_helper.h" | 15 #include "chrome/browser/sync/test/integration/passwords_helper.h" |
14 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 16 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
15 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" | 17 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
16 #include "chrome/browser/sync/test/integration/sync_test.h" | 18 #include "chrome/browser/sync/test/integration/sync_test.h" |
17 #include "sync/internal_api/public/engine/model_safe_worker.h" | 19 #include "sync/internal_api/public/engine/model_safe_worker.h" |
18 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 20 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
19 | 21 |
20 using passwords_helper::AddLogin; | 22 using passwords_helper::AddLogin; |
21 using passwords_helper::AllProfilesContainSamePasswordForms; | 23 using passwords_helper::AllProfilesContainSamePasswordForms; |
22 using passwords_helper::AllProfilesContainSamePasswordFormsAsVerifier; | 24 using passwords_helper::AllProfilesContainSamePasswordFormsAsVerifier; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 231 |
230 // Blocks and waits for password forms in all profiles to match. | 232 // Blocks and waits for password forms in all profiles to match. |
231 ASSERT_TRUE(AwaitAllProfilesContainSamePasswordForms()); | 233 ASSERT_TRUE(AwaitAllProfilesContainSamePasswordForms()); |
232 | 234 |
233 // Check that total number of passwords is as expected. | 235 // Check that total number of passwords is as expected. |
234 for (int i = 0; i < num_clients(); ++i) { | 236 for (int i = 0; i < num_clients(); ++i) { |
235 ASSERT_EQ(GetPasswordCount(i), init_password_count + num_clients()) << | 237 ASSERT_EQ(GetPasswordCount(i), init_password_count + num_clients()) << |
236 "Total password count is wrong."; | 238 "Total password count is wrong."; |
237 } | 239 } |
238 } | 240 } |
OLD | NEW |