Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: chrome/test/live_sync/performance/autofill_sync_perf_test.cc

Issue 7541065: autofill: Refactor PersonalDataManager::Observer into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/test/live_sync/autofill_helper.cc ('k') | chrome/test/live_sync/two_client_autofill_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698