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

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

Issue 113815: Support for searching bookmarks for IDN.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « chrome/browser/bookmarks/bookmark_table_model.cc ('k') | chrome/browser/bookmarks/bookmark_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_table_model_unittest.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_table_model_unittest.cc (revision 17304)
+++ chrome/browser/bookmarks/bookmark_table_model_unittest.cc (working copy)
@@ -33,7 +33,7 @@
item_changed_count_(0),
added_count_(0),
removed_count_(0) {
- }
+ }
virtual void SetUp() {
profile_.reset(new TestingProfile());
@@ -248,7 +248,8 @@
// Verifies search finds the correct bookmarks.
TEST_F(BookmarkTableModelTest, Search) {
- SetModel(BookmarkTableModel::CreateSearchTableModel(bookmark_model(), L"c"));
+ SetModel(BookmarkTableModel::CreateSearchTableModel(
+ bookmark_model(), L"c", std::wstring()));
ASSERT_EQ(1, model_->RowCount());
EXPECT_TRUE(bookmark_model()->other_node()->GetChild(2) ==
model_->GetNodeForRow(0));
@@ -259,7 +260,8 @@
// Verifies adding an item to search notifies observers.
TEST_F(BookmarkTableModelTest, AddToSearch) {
- SetModel(BookmarkTableModel::CreateSearchTableModel(bookmark_model(), L"c"));
+ SetModel(BookmarkTableModel::CreateSearchTableModel(
+ bookmark_model(), L"c", std::wstring()));
BookmarkNode* new_node =
bookmark_model()->AddURL(bookmark_model()->other_node(), 0, L"c", url1_);
// Should have gotten notification of the add.
@@ -281,7 +283,8 @@
// Verifies removing an item updates search.
TEST_F(BookmarkTableModelTest, RemoveFromSearch) {
- SetModel(BookmarkTableModel::CreateSearchTableModel(bookmark_model(), L"c"));
+ SetModel(BookmarkTableModel::CreateSearchTableModel(
+ bookmark_model(), L"c", std::wstring()));
bookmark_model()->Remove(bookmark_model()->other_node(), 2);
// Should have gotten notification of the remove.
VerifyAndClearOberserverCounts(0, 0, 0, 1);
@@ -298,7 +301,8 @@
// Verifies changing an item in search notifies observer.
TEST_F(BookmarkTableModelTest, ChangeSearch) {
- SetModel(BookmarkTableModel::CreateSearchTableModel(bookmark_model(), L"c"));
+ SetModel(BookmarkTableModel::CreateSearchTableModel(bookmark_model(),
+ L"c", std::wstring()));
bookmark_model()->SetTitle(bookmark_model()->other_node()->GetChild(2),
L"new");
// Should have gotten notification of the change.
« no previous file with comments | « chrome/browser/bookmarks/bookmark_table_model.cc ('k') | chrome/browser/bookmarks/bookmark_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698