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/stringprintf.h" | 5 #include "base/stringprintf.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "chrome/browser/sync/profile_sync_service_harness.h" | 7 #include "chrome/browser/sync/profile_sync_service_harness.h" |
8 #include "chrome/browser/sync/test/integration/autofill_helper.h" | 8 #include "chrome/browser/sync/test/integration/autofill_helper.h" |
9 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" | 9 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" |
10 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" | 10 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" |
11 #include "chrome/browser/sync/test/integration/sync_test.h" | 11 #include "chrome/browser/sync/test/integration/sync_test.h" |
12 #include "chrome/browser/webdata/autofill_entry.h" | |
13 #include "components/autofill/browser/autofill_common_test.h" | 12 #include "components/autofill/browser/autofill_common_test.h" |
14 #include "components/autofill/browser/autofill_profile.h" | 13 #include "components/autofill/browser/autofill_profile.h" |
| 14 #include "components/webdata/autofill/autofill_entry.h" |
15 | 15 |
16 using autofill_helper::AllProfilesMatch; | 16 using autofill_helper::AllProfilesMatch; |
17 using autofill_helper::GetAllKeys; | 17 using autofill_helper::GetAllKeys; |
18 using autofill_helper::GetAllProfiles; | 18 using autofill_helper::GetAllProfiles; |
19 using autofill_helper::GetKeyCount; | 19 using autofill_helper::GetKeyCount; |
20 using autofill_helper::GetProfileCount; | 20 using autofill_helper::GetProfileCount; |
21 using autofill_helper::RemoveKeys; | 21 using autofill_helper::RemoveKeys; |
22 using autofill_helper::SetProfiles; | 22 using autofill_helper::SetProfiles; |
23 | 23 |
24 // See comments in typed_urls_sync_perf_test.cc for reasons for these | 24 // See comments in typed_urls_sync_perf_test.cc for reasons for these |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 ASSERT_EQ(kNumKeys, GetKeyCount(1)); | 197 ASSERT_EQ(kNumKeys, GetKeyCount(1)); |
198 SyncTimingHelper::PrintResult("autofill", "add_autofill_keys", dt); | 198 SyncTimingHelper::PrintResult("autofill", "add_autofill_keys", dt); |
199 | 199 |
200 RemoveKeys(0); | 200 RemoveKeys(0); |
201 // TODO(lipalani): fix this. The following line is added to force sync. | 201 // TODO(lipalani): fix this. The following line is added to force sync. |
202 ForceSync(0); | 202 ForceSync(0); |
203 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); | 203 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); |
204 ASSERT_EQ(0, GetKeyCount(1)); | 204 ASSERT_EQ(0, GetKeyCount(1)); |
205 SyncTimingHelper::PrintResult("autofill", "delete_autofill_keys", dt); | 205 SyncTimingHelper::PrintResult("autofill", "delete_autofill_keys", dt); |
206 } | 206 } |
OLD | NEW |