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

Unified Diff: chrome/browser/sync/test/integration/typed_urls_helper.cc

Issue 2787893003: [Sync] TypedUrlSyncableService should filter expired visits from local (Closed)
Patch Set: more verify Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/typed_urls_helper.cc
diff --git a/chrome/browser/sync/test/integration/typed_urls_helper.cc b/chrome/browser/sync/test/integration/typed_urls_helper.cc
index bec77f9d753896fed92a69f7560a8b5571690fc1..796212ed721f4342632d5489e5d6625e095f25cf 100644
--- a/chrome/browser/sync/test/integration/typed_urls_helper.cc
+++ b/chrome/browser/sync/test/integration/typed_urls_helper.cc
@@ -17,9 +17,13 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
+#include "components/browser_sync/profile_sync_service.h"
#include "components/history/core/browser/history_backend.h"
#include "components/history/core/browser/history_db_task.h"
#include "components/history/core/browser/history_service.h"
+#include "components/sync/syncable/read_node.h"
+#include "components/sync/syncable/read_transaction.h"
+#include "components/sync/syncable/user_share.h"
using sync_datatype_helper::test;
@@ -418,6 +422,14 @@ bool CheckAllProfilesHaveSameURLs() {
return true;
}
+bool CheckSyncDirectoryHasURL(int index, const GURL& url) {
+ syncer::ReadTransaction trans(FROM_HERE,
+ test()->GetSyncService(index)->GetUserShare());
+ syncer::ReadNode node(&trans);
+ return syncer::BaseNode::INIT_OK ==
+ node.InitByClientTagLookup(syncer::TYPED_URLS, url.spec());
+}
+
} // namespace typed_urls_helper
ProfilesHaveSameURLsChecker::ProfilesHaveSameURLsChecker()
« no previous file with comments | « chrome/browser/sync/test/integration/typed_urls_helper.h ('k') | components/history/core/browser/typed_url_syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698