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

Side by Side Diff: chrome/browser/sync/test/integration/performance/autofill_sync_perf_test.cc

Issue 2791793002: [Sync] Fix flaky TwoClientAutofillSyncTest.ConflictingFields. (Closed)
Patch Set: Updated for Pavel's comment. Created 3 years, 8 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
OLDNEW
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> 5 #include <stddef.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/sync/test/integration/autofill_helper.h" 10 #include "chrome/browser/sync/test/integration/autofill_helper.h"
11 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" 11 #include "chrome/browser/sync/test/integration/bookmarks_helper.h"
12 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" 12 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h"
13 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 13 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
14 #include "chrome/browser/sync/test/integration/sync_test.h" 14 #include "chrome/browser/sync/test/integration/sync_test.h"
15 #include "components/autofill/core/browser/autofill_profile.h" 15 #include "components/autofill/core/browser/autofill_profile.h"
16 #include "components/autofill/core/browser/autofill_test_utils.h" 16 #include "components/autofill/core/browser/autofill_test_utils.h"
17 #include "components/autofill/core/browser/webdata/autofill_entry.h" 17 #include "components/autofill/core/browser/webdata/autofill_entry.h"
18 18
19 using autofill::ServerFieldType; 19 using autofill::ServerFieldType;
20 using autofill::AutofillKey; 20 using autofill::AutofillKey;
21 using autofill::AutofillProfile; 21 using autofill::AutofillProfile;
22 using autofill_helper::AllProfilesMatch;
23 using autofill_helper::GetAllAutoFillProfiles; 22 using autofill_helper::GetAllAutoFillProfiles;
24 using autofill_helper::GetAllKeys; 23 using autofill_helper::GetAllKeys;
25 using autofill_helper::GetKeyCount; 24 using autofill_helper::GetKeyCount;
26 using autofill_helper::GetProfileCount; 25 using autofill_helper::GetProfileCount;
27 using autofill_helper::RemoveKeys; 26 using autofill_helper::RemoveKeys;
28 using autofill_helper::SetProfiles; 27 using autofill_helper::SetProfiles;
29 using sync_timing_helper::PrintResult; 28 using sync_timing_helper::PrintResult;
30 using sync_timing_helper::TimeMutualSyncCycle; 29 using sync_timing_helper::TimeMutualSyncCycle;
31 30
32 // See comments in typed_urls_sync_perf_test.cc for reasons for these 31 // See comments in typed_urls_sync_perf_test.cc for reasons for these
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 ASSERT_EQ(kNumKeys, GetKeyCount(1)); 198 ASSERT_EQ(kNumKeys, GetKeyCount(1));
200 PrintResult("autofill", "add_autofill_keys", dt); 199 PrintResult("autofill", "add_autofill_keys", dt);
201 200
202 RemoveKeys(0); 201 RemoveKeys(0);
203 // TODO(lipalani): fix this. The following line is added to force sync. 202 // TODO(lipalani): fix this. The following line is added to force sync.
204 ForceSync(0); 203 ForceSync(0);
205 dt = TimeMutualSyncCycle(GetClient(0), GetClient(1)); 204 dt = TimeMutualSyncCycle(GetClient(0), GetClient(1));
206 ASSERT_EQ(0, GetKeyCount(1)); 205 ASSERT_EQ(0, GetKeyCount(1));
207 PrintResult("autofill", "delete_autofill_keys", dt); 206 PrintResult("autofill", "delete_autofill_keys", dt);
208 } 207 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/autofill_helper.cc ('k') | chrome/browser/sync/test/integration/sync_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698