OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/autofill/autofill_common_test.h" | 7 #include "chrome/browser/autofill/autofill_common_test.h" |
| 8 #include "chrome/browser/autofill/autofill_profile.h" |
8 #include "chrome/browser/sync/profile_sync_service_harness.h" | 9 #include "chrome/browser/sync/profile_sync_service_harness.h" |
9 #include "chrome/test/live_sync/autofill_helper.h" | 10 #include "chrome/test/live_sync/autofill_helper.h" |
10 #include "chrome/test/live_sync/live_sync_test.h" | 11 #include "chrome/test/live_sync/live_sync_test.h" |
11 #include "chrome/test/live_sync/performance/sync_timing_helper.h" | 12 #include "chrome/test/live_sync/performance/sync_timing_helper.h" |
12 | 13 |
13 // TODO(braffert): Move kNumBenchmarkPoints and kBenchmarkPoints for all | 14 // TODO(braffert): Move kNumBenchmarkPoints and kBenchmarkPoints for all |
14 // datatypes into a performance test base class, once it is possible to do so. | 15 // datatypes into a performance test base class, once it is possible to do so. |
15 static const int kNumProfiles = 150; | 16 static const int kNumProfiles = 150; |
16 static const int kNumBenchmarkPoints = 18; | 17 static const int kNumBenchmarkPoints = 18; |
17 static const int kBenchmarkPoints[] = {1, 10, 20, 30, 40, 50, 75, 100, 125, | 18 static const int kBenchmarkPoints[] = {1, 10, 20, 30, 40, 50, 75, 100, 125, |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 base::TimeDelta dt_delete = | 169 base::TimeDelta dt_delete = |
169 SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); | 170 SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); |
170 ASSERT_EQ(0, AutofillHelper::GetProfileCount(0)); | 171 ASSERT_EQ(0, AutofillHelper::GetProfileCount(0)); |
171 ASSERT_TRUE(AutofillHelper::AllProfilesMatch()); | 172 ASSERT_TRUE(AutofillHelper::AllProfilesMatch()); |
172 VLOG(0) << std::endl << "Delete: " << num_profiles << " " | 173 VLOG(0) << std::endl << "Delete: " << num_profiles << " " |
173 << dt_delete.InSecondsF(); | 174 << dt_delete.InSecondsF(); |
174 | 175 |
175 Cleanup(); | 176 Cleanup(); |
176 } | 177 } |
177 } | 178 } |
OLD | NEW |