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

Unified Diff: chrome/browser/bookmarks/bookmark_utils_unittest.cc

Issue 75963003: Include folders in bookmark search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change behavior for GetBookmarksContainingText Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_utils_unittest.cc
diff --git a/chrome/browser/bookmarks/bookmark_utils_unittest.cc b/chrome/browser/bookmarks/bookmark_utils_unittest.cc
index 9e5396b1faeedc92e10a0c36767470481bc45b35..90ed7f8a07edf767df5262964b54633334f7b1a8 100644
--- a/chrome/browser/bookmarks/bookmark_utils_unittest.cc
+++ b/chrome/browser/bookmarks/bookmark_utils_unittest.cc
@@ -38,13 +38,16 @@ TEST_F(BookmarkUtilsTest, GetBookmarksContainingText) {
ASCIIToUTF16("baz buz"),
GURL("http://www.cnn.com"));
- model.AddFolder(model.other_node(), 0, ASCIIToUTF16("foo"));
+ const BookmarkNode* n3 = model.AddFolder(model.other_node(),
tfarina 2013/11/21 23:00:16 I'd name this folder1, or even just folder.
+ 0,
+ ASCIIToUTF16("foo"));
std::vector<const BookmarkNode*> nodes;
GetBookmarksContainingText(
&model, ASCIIToUTF16("foo"), 100, string(), &nodes);
- ASSERT_EQ(1U, nodes.size());
- EXPECT_TRUE(nodes[0] == n1);
+ ASSERT_EQ(2U, nodes.size());
+ EXPECT_TRUE(nodes[0] == n3);
+ EXPECT_TRUE(nodes[1] == n1);
nodes.clear();
GetBookmarksContainingText(
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698