Commit d6c56331 authored by Mohamed Amir Yosef's avatar Mohamed Amir Yosef Committed by Commit Bot

[Sync::USS] Adding a simple test for downloading a bookmark

This CL adds a simple integration test for downloading a bookmark.

It's a simpler version of the existing DownloadDeletedBookmark test.

Bug: 516866
Change-Id: I29f54aa2647b6b89e821b7e84faf84292d6f8707
Reviewed-on: https://chromium-review.googlesource.com/1014045
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Reviewed-by: default avatarMikel Astiz <mastiz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551392}
parent 5390cdff
...@@ -358,6 +358,20 @@ IN_PROC_BROWSER_TEST_F(SingleClientBookmarksSyncTest, ...@@ -358,6 +358,20 @@ IN_PROC_BROWSER_TEST_F(SingleClientBookmarksSyncTest,
ASSERT_TRUE(ModelMatchesVerifier(kSingleProfileIndex)); ASSERT_TRUE(ModelMatchesVerifier(kSingleProfileIndex));
} }
IN_PROC_BROWSER_TEST_F(SingleClientBookmarksSyncTest, DownloadBookmark) {
std::string title = "Patrick Star";
fake_server::EntityBuilderFactory entity_builder_factory;
fake_server::BookmarkEntityBuilder bookmark_builder =
entity_builder_factory.NewBookmarkEntityBuilder(title);
fake_server_->InjectEntity(bookmark_builder.BuildBookmark(
GURL("http://en.wikipedia.org/wiki/Patrick_Star")));
DisableVerifier();
ASSERT_TRUE(SetupSync());
EXPECT_EQ(1, CountBookmarksWithTitlesMatching(kSingleProfileIndex, title));
}
IN_PROC_BROWSER_TEST_F(SingleClientBookmarksSyncTest, IN_PROC_BROWSER_TEST_F(SingleClientBookmarksSyncTest,
DownloadDeletedBookmark) { DownloadDeletedBookmark) {
std::string title = "Patrick Star"; std::string title = "Patrick Star";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment