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 "chrome/browser/sync/test/integration/bookmarks_helper.h" | 5 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" |
6 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" | 6 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" |
7 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 7 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
8 #include "chrome/browser/sync/test/integration/sync_test.h" | 8 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 9 #include "components/bookmarks/browser/bookmark_node.h" |
9 | 10 |
10 using bookmarks_helper::AddURL; | 11 using bookmarks_helper::AddURL; |
11 using bookmarks_helper::AllModelsMatch; | 12 using bookmarks_helper::AllModelsMatch; |
12 using bookmarks_helper::GetBookmarkBarNode; | 13 using bookmarks_helper::GetBookmarkBarNode; |
13 using bookmarks_helper::IndexedURL; | 14 using bookmarks_helper::IndexedURL; |
14 using bookmarks_helper::IndexedURLTitle; | 15 using bookmarks_helper::IndexedURLTitle; |
15 using bookmarks_helper::Remove; | 16 using bookmarks_helper::Remove; |
16 using bookmarks_helper::SetURL; | 17 using bookmarks_helper::SetURL; |
17 | 18 |
18 static const int kNumBookmarks = 150; | 19 static const int kNumBookmarks = 150; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); | 99 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); |
99 ASSERT_EQ(kNumBookmarks, GetURLCount(1)); | 100 ASSERT_EQ(kNumBookmarks, GetURLCount(1)); |
100 SyncTimingHelper::PrintResult("bookmarks", "update_bookmarks", dt); | 101 SyncTimingHelper::PrintResult("bookmarks", "update_bookmarks", dt); |
101 | 102 |
102 // TCM ID - 7566626. | 103 // TCM ID - 7566626. |
103 RemoveURLs(0); | 104 RemoveURLs(0); |
104 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); | 105 dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1)); |
105 ASSERT_EQ(0, GetURLCount(1)); | 106 ASSERT_EQ(0, GetURLCount(1)); |
106 SyncTimingHelper::PrintResult("bookmarks", "delete_bookmarks", dt); | 107 SyncTimingHelper::PrintResult("bookmarks", "delete_bookmarks", dt); |
107 } | 108 } |
OLD | NEW |