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

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

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 5 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/rand_util.h" 5 #include "base/rand_util.h"
6 #include "chrome/browser/profiles/profile.h" 6 #include "chrome/browser/profiles/profile.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/test/integration/bookmarks_helper.h" 8 #include "chrome/browser/sync/test/integration/bookmarks_helper.h"
9 #include "chrome/browser/sync/test/integration/passwords_helper.h" 9 #include "chrome/browser/sync/test/integration/passwords_helper.h"
10 #include "chrome/browser/sync/test/integration/sync_test.h" 10 #include "chrome/browser/sync/test/integration/sync_test.h"
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 for (int i = 1; i < 5 ; ++i) { 1502 for (int i = 1; i < 5 ; ++i) {
1503 ASSERT_TRUE(CountBookmarksWithTitlesMatching(1, IndexedURLTitle(i)) == i); 1503 ASSERT_TRUE(CountBookmarksWithTitlesMatching(1, IndexedURLTitle(i)) == i);
1504 } 1504 }
1505 } 1505 }
1506 1506
1507 // TCM ID - 6593872. 1507 // TCM ID - 6593872.
1508 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, DisableBookmarks) { 1508 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, DisableBookmarks) {
1509 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1509 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1510 ASSERT_TRUE(AllModelsMatchVerifier()); 1510 ASSERT_TRUE(AllModelsMatchVerifier());
1511 1511
1512 ASSERT_TRUE(GetClient(1)->DisableSyncForDatatype(syncable::BOOKMARKS)); 1512 ASSERT_TRUE(GetClient(1)->DisableSyncForDatatype(syncer::BOOKMARKS));
1513 ASSERT_TRUE(AddFolder(1, kGenericFolderName) != NULL); 1513 ASSERT_TRUE(AddFolder(1, kGenericFolderName) != NULL);
1514 ASSERT_TRUE(AwaitQuiescence()); 1514 ASSERT_TRUE(AwaitQuiescence());
1515 ASSERT_FALSE(AllModelsMatch()); 1515 ASSERT_FALSE(AllModelsMatch());
1516 1516
1517 ASSERT_TRUE(GetClient(1)->EnableSyncForDatatype(syncable::BOOKMARKS)); 1517 ASSERT_TRUE(GetClient(1)->EnableSyncForDatatype(syncer::BOOKMARKS));
1518 ASSERT_TRUE(AwaitQuiescence()); 1518 ASSERT_TRUE(AwaitQuiescence());
1519 ASSERT_TRUE(AllModelsMatch()); 1519 ASSERT_TRUE(AllModelsMatch());
1520 } 1520 }
1521 1521
1522 // TCM ID - 7343544. 1522 // TCM ID - 7343544.
1523 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, DisableSync) { 1523 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, DisableSync) {
1524 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1524 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1525 ASSERT_TRUE(AllModelsMatchVerifier()); 1525 ASSERT_TRUE(AllModelsMatchVerifier());
1526 1526
1527 ASSERT_TRUE(GetClient(1)->DisableSyncForAllDatatypes()); 1527 ASSERT_TRUE(GetClient(1)->DisableSyncForAllDatatypes());
(...skipping 29 matching lines...) Expand all
1557 } 1557 }
1558 1558
1559 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1559 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1560 ASSERT_TRUE(AwaitQuiescence()); 1560 ASSERT_TRUE(AwaitQuiescence());
1561 ASSERT_TRUE(AllModelsMatch()); 1561 ASSERT_TRUE(AllModelsMatch());
1562 ASSERT_FALSE(ContainsDuplicateBookmarks(0)); 1562 ASSERT_FALSE(ContainsDuplicateBookmarks(0));
1563 } 1563 }
1564 1564
1565 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, MC_DeleteBookmark) { 1565 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, MC_DeleteBookmark) {
1566 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1566 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1567 ASSERT_TRUE(GetClient(1)->DisableSyncForDatatype(syncable::BOOKMARKS)); 1567 ASSERT_TRUE(GetClient(1)->DisableSyncForDatatype(syncer::BOOKMARKS));
1568 1568
1569 const GURL bar_url("http://example.com/bar"); 1569 const GURL bar_url("http://example.com/bar");
1570 const GURL other_url("http://example.com/other"); 1570 const GURL other_url("http://example.com/other");
1571 1571
1572 ASSERT_TRUE(AddURL(0, GetBookmarkBarNode(0), 0, L"bar", bar_url) != NULL); 1572 ASSERT_TRUE(AddURL(0, GetBookmarkBarNode(0), 0, L"bar", bar_url) != NULL);
1573 ASSERT_TRUE(AddURL(0, GetOtherNode(0), 0, L"other", other_url) != NULL); 1573 ASSERT_TRUE(AddURL(0, GetOtherNode(0), 0, L"other", other_url) != NULL);
1574 1574
1575 ASSERT_TRUE(AwaitQuiescence()); 1575 ASSERT_TRUE(AwaitQuiescence());
1576 1576
1577 ASSERT_TRUE(HasNodeWithURL(0, bar_url)); 1577 ASSERT_TRUE(HasNodeWithURL(0, bar_url));
1578 ASSERT_TRUE(HasNodeWithURL(0, other_url)); 1578 ASSERT_TRUE(HasNodeWithURL(0, other_url));
1579 ASSERT_FALSE(HasNodeWithURL(1, bar_url)); 1579 ASSERT_FALSE(HasNodeWithURL(1, bar_url));
1580 ASSERT_FALSE(HasNodeWithURL(1, other_url)); 1580 ASSERT_FALSE(HasNodeWithURL(1, other_url));
1581 1581
1582 Remove(0, GetBookmarkBarNode(0), 0); 1582 Remove(0, GetBookmarkBarNode(0), 0);
1583 ASSERT_TRUE(AwaitQuiescence()); 1583 ASSERT_TRUE(AwaitQuiescence());
1584 1584
1585 ASSERT_FALSE(HasNodeWithURL(0, bar_url)); 1585 ASSERT_FALSE(HasNodeWithURL(0, bar_url));
1586 ASSERT_TRUE(HasNodeWithURL(0, other_url)); 1586 ASSERT_TRUE(HasNodeWithURL(0, other_url));
1587 1587
1588 ASSERT_TRUE(GetClient(1)->EnableSyncForDatatype(syncable::BOOKMARKS)); 1588 ASSERT_TRUE(GetClient(1)->EnableSyncForDatatype(syncer::BOOKMARKS));
1589 ASSERT_TRUE(AwaitQuiescence()); 1589 ASSERT_TRUE(AwaitQuiescence());
1590 1590
1591 ASSERT_FALSE(HasNodeWithURL(0, bar_url)); 1591 ASSERT_FALSE(HasNodeWithURL(0, bar_url));
1592 ASSERT_TRUE(HasNodeWithURL(0, other_url)); 1592 ASSERT_TRUE(HasNodeWithURL(0, other_url));
1593 ASSERT_FALSE(HasNodeWithURL(1, bar_url)); 1593 ASSERT_FALSE(HasNodeWithURL(1, bar_url));
1594 ASSERT_TRUE(HasNodeWithURL(1, other_url)); 1594 ASSERT_TRUE(HasNodeWithURL(1, other_url));
1595 } 1595 }
1596 1596
1597 // TCM ID - 3719307 - Test a scenario of updating the name of the same bookmark 1597 // TCM ID - 3719307 - Test a scenario of updating the name of the same bookmark
1598 // from two clients at the same time. 1598 // from two clients at the same time.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1719 ASSERT_TRUE(AwaitQuiescence()); 1719 ASSERT_TRUE(AwaitQuiescence());
1720 ASSERT_TRUE(AllModelsMatch()); 1720 ASSERT_TRUE(AllModelsMatch());
1721 ASSERT_FALSE(ContainsDuplicateBookmarks(0)); 1721 ASSERT_FALSE(ContainsDuplicateBookmarks(0));
1722 } 1722 }
1723 1723
1724 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, 1724 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest,
1725 SingleClientEnabledEncryption) { 1725 SingleClientEnabledEncryption) {
1726 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1726 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1727 ASSERT_TRUE(AllModelsMatchVerifier()); 1727 ASSERT_TRUE(AllModelsMatchVerifier());
1728 1728
1729 ASSERT_TRUE(EnableEncryption(0, syncable::BOOKMARKS)); 1729 ASSERT_TRUE(EnableEncryption(0, syncer::BOOKMARKS));
1730 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); 1730 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1731 ASSERT_TRUE(IsEncrypted(0, syncable::BOOKMARKS)); 1731 ASSERT_TRUE(IsEncrypted(0, syncer::BOOKMARKS));
1732 ASSERT_TRUE(IsEncrypted(1, syncable::BOOKMARKS)); 1732 ASSERT_TRUE(IsEncrypted(1, syncer::BOOKMARKS));
1733 ASSERT_TRUE(AllModelsMatchVerifier()); 1733 ASSERT_TRUE(AllModelsMatchVerifier());
1734 } 1734 }
1735 1735
1736 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, 1736 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest,
1737 SingleClientEnabledEncryptionAndChanged) { 1737 SingleClientEnabledEncryptionAndChanged) {
1738 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1738 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1739 ASSERT_TRUE(AllModelsMatchVerifier()); 1739 ASSERT_TRUE(AllModelsMatchVerifier());
1740 1740
1741 ASSERT_TRUE(EnableEncryption(0, syncable::BOOKMARKS)); 1741 ASSERT_TRUE(EnableEncryption(0, syncer::BOOKMARKS));
1742 ASSERT_TRUE(AddURL(0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL); 1742 ASSERT_TRUE(AddURL(0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL);
1743 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); 1743 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1744 ASSERT_TRUE(IsEncrypted(0, syncable::BOOKMARKS)); 1744 ASSERT_TRUE(IsEncrypted(0, syncer::BOOKMARKS));
1745 ASSERT_TRUE(IsEncrypted(1, syncable::BOOKMARKS)); 1745 ASSERT_TRUE(IsEncrypted(1, syncer::BOOKMARKS));
1746 ASSERT_TRUE(AllModelsMatchVerifier()); 1746 ASSERT_TRUE(AllModelsMatchVerifier());
1747 } 1747 }
1748 1748
1749 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, 1749 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest,
1750 BothClientsEnabledEncryption) { 1750 BothClientsEnabledEncryption) {
1751 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1751 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1752 ASSERT_TRUE(AllModelsMatchVerifier()); 1752 ASSERT_TRUE(AllModelsMatchVerifier());
1753 1753
1754 ASSERT_TRUE(EnableEncryption(0, syncable::BOOKMARKS)); 1754 ASSERT_TRUE(EnableEncryption(0, syncer::BOOKMARKS));
1755 ASSERT_TRUE(EnableEncryption(1, syncable::BOOKMARKS)); 1755 ASSERT_TRUE(EnableEncryption(1, syncer::BOOKMARKS));
1756 ASSERT_TRUE(AwaitQuiescence()); 1756 ASSERT_TRUE(AwaitQuiescence());
1757 ASSERT_TRUE(IsEncrypted(0, syncable::BOOKMARKS)); 1757 ASSERT_TRUE(IsEncrypted(0, syncer::BOOKMARKS));
1758 ASSERT_TRUE(IsEncrypted(1, syncable::BOOKMARKS)); 1758 ASSERT_TRUE(IsEncrypted(1, syncer::BOOKMARKS));
1759 ASSERT_TRUE(AllModelsMatchVerifier()); 1759 ASSERT_TRUE(AllModelsMatchVerifier());
1760 } 1760 }
1761 1761
1762 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, 1762 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest,
1763 SingleClientEnabledEncryptionBothChanged) { 1763 SingleClientEnabledEncryptionBothChanged) {
1764 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1764 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1765 ASSERT_TRUE(AllModelsMatchVerifier()); 1765 ASSERT_TRUE(AllModelsMatchVerifier());
1766 1766
1767 ASSERT_TRUE(EnableEncryption(0, syncable::BOOKMARKS)); 1767 ASSERT_TRUE(EnableEncryption(0, syncer::BOOKMARKS));
1768 ASSERT_TRUE(AwaitQuiescence()); 1768 ASSERT_TRUE(AwaitQuiescence());
1769 ASSERT_TRUE(IsEncrypted(0, syncable::BOOKMARKS)); 1769 ASSERT_TRUE(IsEncrypted(0, syncer::BOOKMARKS));
1770 ASSERT_TRUE(IsEncrypted(1, syncable::BOOKMARKS)); 1770 ASSERT_TRUE(IsEncrypted(1, syncer::BOOKMARKS));
1771 ASSERT_TRUE(AddURL(0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL); 1771 ASSERT_TRUE(AddURL(0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL);
1772 ASSERT_TRUE(AddURL(0, IndexedURLTitle(1), GURL(IndexedURL(1))) != NULL); 1772 ASSERT_TRUE(AddURL(0, IndexedURLTitle(1), GURL(IndexedURL(1))) != NULL);
1773 ASSERT_TRUE(AwaitQuiescence()); 1773 ASSERT_TRUE(AwaitQuiescence());
1774 ASSERT_TRUE(AllModelsMatchVerifier()); 1774 ASSERT_TRUE(AllModelsMatchVerifier());
1775 ASSERT_TRUE(IsEncrypted(0, syncable::BOOKMARKS)); 1775 ASSERT_TRUE(IsEncrypted(0, syncer::BOOKMARKS));
1776 ASSERT_TRUE(IsEncrypted(1, syncable::BOOKMARKS)); 1776 ASSERT_TRUE(IsEncrypted(1, syncer::BOOKMARKS));
1777 } 1777 }
1778 1778
1779 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, 1779 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest,
1780 SingleClientEnabledEncryptionAndChangedMultipleTimes) { 1780 SingleClientEnabledEncryptionAndChangedMultipleTimes) {
1781 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1781 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1782 ASSERT_TRUE(AllModelsMatchVerifier()); 1782 ASSERT_TRUE(AllModelsMatchVerifier());
1783 1783
1784 ASSERT_TRUE(AddURL(0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL); 1784 ASSERT_TRUE(AddURL(0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL);
1785 ASSERT_TRUE(EnableEncryption(0, syncable::BOOKMARKS)); 1785 ASSERT_TRUE(EnableEncryption(0, syncer::BOOKMARKS));
1786 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); 1786 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1787 ASSERT_TRUE(IsEncrypted(0, syncable::BOOKMARKS)); 1787 ASSERT_TRUE(IsEncrypted(0, syncer::BOOKMARKS));
1788 ASSERT_TRUE(IsEncrypted(1, syncable::BOOKMARKS)); 1788 ASSERT_TRUE(IsEncrypted(1, syncer::BOOKMARKS));
1789 ASSERT_TRUE(AllModelsMatchVerifier()); 1789 ASSERT_TRUE(AllModelsMatchVerifier());
1790 1790
1791 ASSERT_TRUE(AddURL(0, IndexedURLTitle(1), GURL(IndexedURL(1))) != NULL); 1791 ASSERT_TRUE(AddURL(0, IndexedURLTitle(1), GURL(IndexedURL(1))) != NULL);
1792 ASSERT_TRUE(AddFolder(0, IndexedFolderName(0)) != NULL); 1792 ASSERT_TRUE(AddFolder(0, IndexedFolderName(0)) != NULL);
1793 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); 1793 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1794 ASSERT_TRUE(AllModelsMatchVerifier()); 1794 ASSERT_TRUE(AllModelsMatchVerifier());
1795 } 1795 }
1796 1796
1797 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, 1797 IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest,
1798 FirstClientEnablesEncryptionWithPassSecondChanges) { 1798 FirstClientEnablesEncryptionWithPassSecondChanges) {
1799 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 1799 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
1800 ASSERT_TRUE(AllModelsMatchVerifier()); 1800 ASSERT_TRUE(AllModelsMatchVerifier());
1801 1801
1802 // Add initial bookmarks. 1802 // Add initial bookmarks.
1803 ASSERT_TRUE(AddURL(0, 0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL); 1803 ASSERT_TRUE(AddURL(0, 0, IndexedURLTitle(0), GURL(IndexedURL(0))) != NULL);
1804 ASSERT_TRUE(AddURL(0, 1, IndexedURLTitle(1), GURL(IndexedURL(1))) != NULL); 1804 ASSERT_TRUE(AddURL(0, 1, IndexedURLTitle(1), GURL(IndexedURL(1))) != NULL);
1805 ASSERT_TRUE(AddURL(0, 2, IndexedURLTitle(2), GURL(IndexedURL(2))) != NULL); 1805 ASSERT_TRUE(AddURL(0, 2, IndexedURLTitle(2), GURL(IndexedURL(2))) != NULL);
1806 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); 1806 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1807 ASSERT_TRUE(AllModelsMatchVerifier()); 1807 ASSERT_TRUE(AllModelsMatchVerifier());
1808 1808
1809 // Set a passphrase and enable encryption on Client 0. Client 1 will not 1809 // Set a passphrase and enable encryption on Client 0. Client 1 will not
1810 // understand the bookmark updates. 1810 // understand the bookmark updates.
1811 SetEncryptionPassphrase(0, kValidPassphrase, ProfileSyncService::EXPLICIT); 1811 SetEncryptionPassphrase(0, kValidPassphrase, ProfileSyncService::EXPLICIT);
1812 ASSERT_TRUE(GetClient(0)->AwaitPassphraseAccepted()); 1812 ASSERT_TRUE(GetClient(0)->AwaitPassphraseAccepted());
1813 ASSERT_TRUE(EnableEncryption(0, syncable::BOOKMARKS)); 1813 ASSERT_TRUE(EnableEncryption(0, syncer::BOOKMARKS));
1814 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); 1814 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1815 ASSERT_TRUE(IsEncrypted(0, syncable::BOOKMARKS)); 1815 ASSERT_TRUE(IsEncrypted(0, syncer::BOOKMARKS));
1816 ASSERT_TRUE(IsEncrypted(1, syncable::BOOKMARKS)); 1816 ASSERT_TRUE(IsEncrypted(1, syncer::BOOKMARKS));
1817 ASSERT_TRUE(GetClient(1)->service()->IsPassphraseRequired()); 1817 ASSERT_TRUE(GetClient(1)->service()->IsPassphraseRequired());
1818 ASSERT_GT(GetClient(1)->GetLastSessionSnapshot().num_encryption_conflicts(), 1818 ASSERT_GT(GetClient(1)->GetLastSessionSnapshot().num_encryption_conflicts(),
1819 3); // The encrypted nodes. 1819 3); // The encrypted nodes.
1820 1820
1821 // Client 1 adds bookmarks between the first two and between the second two. 1821 // Client 1 adds bookmarks between the first two and between the second two.
1822 ASSERT_TRUE(AddURL(0, 1, IndexedURLTitle(3), GURL(IndexedURL(3))) != NULL); 1822 ASSERT_TRUE(AddURL(0, 1, IndexedURLTitle(3), GURL(IndexedURL(3))) != NULL);
1823 ASSERT_TRUE(AddURL(0, 3, IndexedURLTitle(4), GURL(IndexedURL(4))) != NULL); 1823 ASSERT_TRUE(AddURL(0, 3, IndexedURLTitle(4), GURL(IndexedURL(4))) != NULL);
1824 EXPECT_FALSE(AllModelsMatchVerifier()); 1824 EXPECT_FALSE(AllModelsMatchVerifier());
1825 EXPECT_FALSE(AllModelsMatch()); 1825 EXPECT_FALSE(AllModelsMatch());
1826 1826
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 1934
1935 // Now add a bookmark within the Synced Bookmarks folder and ensure it syncs 1935 // Now add a bookmark within the Synced Bookmarks folder and ensure it syncs
1936 // over. 1936 // over.
1937 const BookmarkNode* synced_bookmarks = GetSyncedBookmarksNode(0); 1937 const BookmarkNode* synced_bookmarks = GetSyncedBookmarksNode(0);
1938 ASSERT_TRUE(synced_bookmarks); 1938 ASSERT_TRUE(synced_bookmarks);
1939 ASSERT_TRUE(AddURL(0, synced_bookmarks, 0, L"Google2", 1939 ASSERT_TRUE(AddURL(0, synced_bookmarks, 0, L"Google2",
1940 GURL("http://www.google2.com"))); 1940 GURL("http://www.google2.com")));
1941 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); 1941 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
1942 ASSERT_TRUE(AllModelsMatch()); 1942 ASSERT_TRUE(AllModelsMatch());
1943 } 1943 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698