OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #if defined(BROWSER_SYNC) | |
6 | |
7 #include <stdlib.h> | 5 #include <stdlib.h> |
8 | 6 |
9 #include "base/string16.h" | 7 #include "base/string16.h" |
10 #include "base/rand_util.h" | 8 #include "base/rand_util.h" |
11 #include "chrome/browser/bookmarks/bookmark_model.h" | 9 #include "chrome/browser/bookmarks/bookmark_model.h" |
12 #include "chrome/browser/bookmarks/bookmark_utils.h" | 10 #include "chrome/browser/bookmarks/bookmark_utils.h" |
13 #include "chrome/browser/browser.h" | 11 #include "chrome/browser/browser.h" |
14 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
15 #include "chrome/browser/sync/profile_sync_service.h" | 13 #include "chrome/browser/sync/profile_sync_service.h" |
16 #include "chrome/test/live_sync/bookmark_model_verifier.h" | 14 #include "chrome/test/live_sync/bookmark_model_verifier.h" |
(...skipping 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2476 // Wait for changes to propagate. | 2474 // Wait for changes to propagate. |
2477 ASSERT_TRUE(client2()->AwaitMutualSyncCycleCompletion(client1())); | 2475 ASSERT_TRUE(client2()->AwaitMutualSyncCycleCompletion(client1())); |
2478 // Let's make sure there aren't any duplicates after sync. | 2476 // Let's make sure there aren't any duplicates after sync. |
2479 BookmarkModelVerifier::VerifyNoDuplicates(model_one); | 2477 BookmarkModelVerifier::VerifyNoDuplicates(model_one); |
2480 // Let's compare and make sure both bookmark models are same after sync. | 2478 // Let's compare and make sure both bookmark models are same after sync. |
2481 BookmarkModelVerifier::ExpectModelsMatchIncludingFavicon( | 2479 BookmarkModelVerifier::ExpectModelsMatchIncludingFavicon( |
2482 model_one, model_two, false); | 2480 model_one, model_two, false); |
2483 | 2481 |
2484 Cleanup(); | 2482 Cleanup(); |
2485 } | 2483 } |
2486 | |
2487 | |
2488 #endif // defined(BROWSER_SYNC) | |
OLD | NEW |