summaryrefslogtreecommitdiffstats
path: root/components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc
diff options
context:
space:
mode:
authorrfevang <rfevang@chromium.org>2014-12-08 12:03:16 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-08 20:03:35 +0000
commit55f003a5d700cd25148ae2d03958843c9867fee5 (patch)
tree71cb9a33c20824fa47bb5f88973c355e38edb812 /components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc
parentdee21b3a8eaee9b02178840bb3672c659184a8b6 (diff)
downloadchromium_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.cc4
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");