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 "base/macros.h" |
5 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
6 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "build/build_config.h" |
7 #include "chrome/browser/sync/test/integration/passwords_helper.h" | 9 #include "chrome/browser/sync/test/integration/passwords_helper.h" |
8 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" | 10 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" |
9 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 11 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
10 #include "chrome/browser/sync/test/integration/sync_test.h" | 12 #include "chrome/browser/sync/test/integration/sync_test.h" |
11 #include "components/password_manager/core/browser/password_store.h" | 13 #include "components/password_manager/core/browser/password_store.h" |
12 | 14 |
13 using passwords_helper::AddLogin; | 15 using passwords_helper::AddLogin; |
14 using passwords_helper::CreateTestPasswordForm; | 16 using passwords_helper::CreateTestPasswordForm; |
15 using passwords_helper::GetPasswordCount; | 17 using passwords_helper::GetPasswordCount; |
16 using passwords_helper::GetPasswordStore; | 18 using passwords_helper::GetPasswordStore; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 dt = SyncTimingHelper::TimeUntilQuiescence(clients()); | 92 dt = SyncTimingHelper::TimeUntilQuiescence(clients()); |
91 ASSERT_EQ(kNumPasswords, GetPasswordCount(1)); | 93 ASSERT_EQ(kNumPasswords, GetPasswordCount(1)); |
92 SyncTimingHelper::PrintResult("passwords", "update_passwords", dt); | 94 SyncTimingHelper::PrintResult("passwords", "update_passwords", dt); |
93 | 95 |
94 // TCM ID - 7557852 | 96 // TCM ID - 7557852 |
95 RemoveLogins(0); | 97 RemoveLogins(0); |
96 dt = SyncTimingHelper::TimeUntilQuiescence(clients()); | 98 dt = SyncTimingHelper::TimeUntilQuiescence(clients()); |
97 ASSERT_EQ(0, GetPasswordCount(1)); | 99 ASSERT_EQ(0, GetPasswordCount(1)); |
98 SyncTimingHelper::PrintResult("passwords", "delete_passwords", dt); | 100 SyncTimingHelper::PrintResult("passwords", "delete_passwords", dt); |
99 } | 101 } |
OLD | NEW |