| 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 <stddef.h> |
| 6 |
| 7 #include "base/macros.h" |
| 5 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 6 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 7 #include "chrome/browser/sync/test/integration/autofill_helper.h" | 10 #include "chrome/browser/sync/test/integration/autofill_helper.h" |
| 8 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" | 11 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" |
| 9 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" | 12 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" |
| 10 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 13 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| 11 #include "chrome/browser/sync/test/integration/sync_test.h" | 14 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 12 #include "components/autofill/core/browser/autofill_profile.h" | 15 #include "components/autofill/core/browser/autofill_profile.h" |
| 13 #include "components/autofill/core/browser/autofill_test_utils.h" | 16 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 14 #include "components/autofill/core/browser/webdata/autofill_entry.h" | 17 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 ASSERT_EQ(kNumKeys, GetKeyCount(1)); | 204 ASSERT_EQ(kNumKeys, GetKeyCount(1)); |
| 202 SyncTimingHelper::PrintResult("autofill", "add_autofill_keys", dt); | 205 SyncTimingHelper::PrintResult("autofill", "add_autofill_keys", dt); |
| 203 | 206 |
| 204 RemoveKeys(0); | 207 RemoveKeys(0); |
| 205 // TODO(lipalani): fix this. The following line is added to force sync. | 208 // TODO(lipalani): fix this. The following line is added to force sync. |
| 206 ForceSync(0); | 209 ForceSync(0); |
| 207 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); | 210 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); |
| 208 ASSERT_EQ(0, GetKeyCount(1)); | 211 ASSERT_EQ(0, GetKeyCount(1)); |
| 209 SyncTimingHelper::PrintResult("autofill", "delete_autofill_keys", dt); | 212 SyncTimingHelper::PrintResult("autofill", "delete_autofill_keys", dt); |
| 210 } | 213 } |
| OLD | NEW |