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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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) 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/stringprintf.h" 6 #include "base/stringprintf.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/sessions/sync_session_context.h"
9 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" 8 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h"
10 #include "chrome/browser/sync/test/integration/sync_test.h" 9 #include "chrome/browser/sync/test/integration/sync_test.h"
11 #include "chrome/browser/sync/test/integration/typed_urls_helper.h" 10 #include "chrome/browser/sync/test/integration/typed_urls_helper.h"
11 #include "sync/sessions/sync_session_context.h"
12 12
13 using typed_urls_helper::AddUrlToHistory; 13 using typed_urls_helper::AddUrlToHistory;
14 using typed_urls_helper::AssertAllProfilesHaveSameURLsAsVerifier; 14 using typed_urls_helper::AssertAllProfilesHaveSameURLsAsVerifier;
15 using typed_urls_helper::DeleteUrlsFromHistory; 15 using typed_urls_helper::DeleteUrlsFromHistory;
16 using typed_urls_helper::GetTypedUrlsFromClient; 16 using typed_urls_helper::GetTypedUrlsFromClient;
17 17
18 // This number should be as far away from a multiple of 18 // This number should be as far away from a multiple of
19 // kDefaultMaxCommitBatchSize as possible, so that sync cycle counts 19 // kDefaultMaxCommitBatchSize as possible, so that sync cycle counts
20 // for batch operations stay the same even if some batches end up not 20 // for batch operations stay the same even if some batches end up not
21 // being completely full. 21 // being completely full.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); 109 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1));
110 ASSERT_EQ(kNumUrls, GetURLCount(1)); 110 ASSERT_EQ(kNumUrls, GetURLCount(1));
111 SyncTimingHelper::PrintResult("typed_urls", "update_typed_urls", dt); 111 SyncTimingHelper::PrintResult("typed_urls", "update_typed_urls", dt);
112 112
113 // TCM ID - 7651271. 113 // TCM ID - 7651271.
114 RemoveURLs(0); 114 RemoveURLs(0);
115 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); 115 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1));
116 ASSERT_EQ(0, GetURLCount(1)); 116 ASSERT_EQ(0, GetURLCount(1));
117 SyncTimingHelper::PrintResult("typed_urls", "delete_typed_urls", dt); 117 SyncTimingHelper::PrintResult("typed_urls", "delete_typed_urls", dt);
118 } 118 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/enable_disable_test.cc ('k') | chrome/browser/sync/test/integration/sessions_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698