| 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 #ifdef CHROME_PERSONALIZATION | 5 #ifdef CHROME_PERSONALIZATION |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 std::wstring title = L"Google"; | 382 std::wstring title = L"Google"; |
| 383 { | 383 { |
| 384 const BookmarkNode* google = verifier->AddURL(model_one, bbn_one, 0, | 384 const BookmarkNode* google = verifier->AddURL(model_one, bbn_one, 0, |
| 385 title, initial_url); | 385 title, initial_url); |
| 386 } | 386 } |
| 387 ASSERT_TRUE(client1()->AwaitMutualSyncCycleCompletion(client2())); | 387 ASSERT_TRUE(client1()->AwaitMutualSyncCycleCompletion(client2())); |
| 388 | 388 |
| 389 { | 389 { |
| 390 const BookmarkNode* google_one = GetByUniqueURL(model_one, initial_url); | 390 const BookmarkNode* google_one = GetByUniqueURL(model_one, initial_url); |
| 391 const BookmarkNode* google_two = GetByUniqueURL(model_two, initial_url); | 391 const BookmarkNode* google_two = GetByUniqueURL(model_two, initial_url); |
| 392 bookmark_utils::ApplyEditsWithNoGroupChange(model_one, bbn_one, google_one, | 392 bookmark_utils::ApplyEditsWithNoGroupChange(model_one, bbn_one, |
| 393 title, second_url, NULL); | 393 BookmarkEditor::EditDetails(google_one), title, second_url, NULL); |
| 394 bookmark_utils::ApplyEditsWithNoGroupChange(model_two, bbn_two, google_two, | 394 bookmark_utils::ApplyEditsWithNoGroupChange(model_two, bbn_two, |
| 395 title, third_url, NULL); | 395 BookmarkEditor::EditDetails(google_two), title, third_url, NULL); |
| 396 } | 396 } |
| 397 ASSERT_TRUE(client1()->AwaitMutualSyncCycleCompletionWithConflict(client2())); | 397 ASSERT_TRUE(client1()->AwaitMutualSyncCycleCompletionWithConflict(client2())); |
| 398 BookmarkModelVerifier::ExpectModelsMatch(model_one, model_two); | 398 BookmarkModelVerifier::ExpectModelsMatch(model_one, model_two); |
| 399 | 399 |
| 400 { | 400 { |
| 401 const BookmarkNode* google_one = bbn_one->GetChild(0); | 401 const BookmarkNode* google_one = bbn_one->GetChild(0); |
| 402 model_one->SetTitle(google_one, L"Google1"); | 402 model_one->SetTitle(google_one, L"Google1"); |
| 403 } | 403 } |
| 404 ASSERT_TRUE(client1()->AwaitMutualSyncCycleCompletion(client2())); | 404 ASSERT_TRUE(client1()->AwaitMutualSyncCycleCompletion(client2())); |
| 405 BookmarkModelVerifier::ExpectModelsMatch(model_one, model_two); | 405 BookmarkModelVerifier::ExpectModelsMatch(model_one, model_two); |
| (...skipping 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2479 BookmarkModelVerifier::VerifyNoDuplicates(model_one); | 2479 BookmarkModelVerifier::VerifyNoDuplicates(model_one); |
| 2480 // Let's compare and make sure both bookmark models are same after sync. | 2480 // Let's compare and make sure both bookmark models are same after sync. |
| 2481 BookmarkModelVerifier::ExpectModelsMatchIncludingFavicon( | 2481 BookmarkModelVerifier::ExpectModelsMatchIncludingFavicon( |
| 2482 model_one, model_two, false); | 2482 model_one, model_two, false); |
| 2483 | 2483 |
| 2484 Cleanup(); | 2484 Cleanup(); |
| 2485 } | 2485 } |
| 2486 | 2486 |
| 2487 | 2487 |
| 2488 #endif // CHROME_PERSONALIZATION | 2488 #endif // CHROME_PERSONALIZATION |
| OLD | NEW |