diff options
author | rfevang <rfevang@chromium.org> | 2014-12-08 12:03:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-08 20:03:35 +0000 |
commit | 55f003a5d700cd25148ae2d03958843c9867fee5 (patch) | |
tree | 71cb9a33c20824fa47bb5f88973c355e38edb812 /components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc | |
parent | dee21b3a8eaee9b02178840bb3672c659184a8b6 (diff) | |
download | chromium_src-55f003a5d700cd25148ae2d03958843c9867fee5.zip chromium_src-55f003a5d700cd25148ae2d03958843c9867fee5.tar.gz chromium_src-55f003a5d700cd25148ae2d03958843c9867fee5.tar.bz2 |
Set the version string nodes created in the enhanced bookmark model.
The version field is now set when the enhanced bookmark model creates
nodes, not just when it edits the meta info fields of existing nodes.
BUG=411412
Review URL: https://codereview.chromium.org/748783004
Cr-Commit-Position: refs/heads/master@{#307310}
Diffstat (limited to 'components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc')
-rw-r--r-- | components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc b/components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc index c6662da..df55b8f 100644 --- a/components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc +++ b/components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc @@ -433,7 +433,9 @@ TEST_F(EnhancedBookmarkModelTest, TestDescriptionFallback) { // Makes sure that the stars.version field is set every time // EnhancedBookmarkModel makes a change to a node. TEST_F(EnhancedBookmarkModelTest, TestVersionField) { - const BookmarkNode* node = AddBookmark(); + const BookmarkNode* node = + bookmark_model_->AddURL(bookmark_model_->other_node(), 0, + base::ASCIIToUTF16("Title"), GURL(BOOKMARK_URL)); EXPECT_EQ("", GetVersion(node)); model_->SetDescription(node, "foo"); |