Home
last modified time | relevance | path

Searched refs:other_node (Results 1 – 25 of 44) sorted by relevance

12

/external/chromium_org/chrome/browser/undo/
Dbookmark_undo_service_test.cc62 const BookmarkNode* parent = model->other_node(); in TEST_F()
67 EXPECT_EQ(0, model->other_node()->child_count()); in TEST_F()
82 const BookmarkNode* parent = model->other_node(); in TEST_F()
91 EXPECT_EQ(1, model->other_node()->child_count()); in TEST_F()
101 EXPECT_EQ(0, model->other_node()->child_count()); in TEST_F()
114 const BookmarkNode* n1 = model->AddURL(model->other_node(), in TEST_F()
128 EXPECT_EQ(1, model->other_node()->child_count()); in TEST_F()
129 const BookmarkNode* node = model->other_node()->GetChild(0); in TEST_F()
135 EXPECT_EQ(1, model->other_node()->child_count()); in TEST_F()
136 node = model->other_node()->GetChild(0); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/views/bookmarks/
Dbookmark_editor_view_unittest.cc143 model_->AddURL(model_->other_node(), 0, ASCIIToUTF16("oa"), in AddTestData()
146 model_->AddFolder(model_->other_node(), 1, ASCIIToUTF16("OF1")); in AddTestData()
178 BookmarkEditorView::EditorNode* other_node = editor_root->GetChild(1); in TEST_F() local
180 ASSERT_EQ(1, other_node->child_count()); in TEST_F()
181 ASSERT_EQ(ASCIIToUTF16("OF1"), other_node->GetChild(0)->GetTitle()); in TEST_F()
228 const BookmarkNode* other_node = in TEST_F() local
229 BookmarkModelFactory::GetForProfile(profile_.get())->other_node(); in TEST_F()
230 ASSERT_EQ(ASCIIToUTF16("a"), other_node->GetChild(2)->GetTitle()); in TEST_F()
231 ASSERT_TRUE(GURL(base_path() + "a") == other_node->GetChild(2)->url()); in TEST_F()
246 const BookmarkNode* other_node = in TEST_F() local
[all …]
Dbookmark_bar_view.cc596 return model_->other_node(); in GetNodeForButtonAtModelIndex()
606 if (node == model_->other_node()) in GetMenuButtonForNode()
919 node = model_->other_node(); in OnDragUpdated()
956 model_->other_node() : model_->bookmark_bar_node(); in OnPerformDrop()
1061 DCHECK(model->other_node()); in BookmarkModelLoaded()
1062 other_bookmarked_button_->SetAccessibleName(model->other_node()->GetTitle()); in BookmarkModelLoaded()
1063 other_bookmarked_button_->SetText(model->other_node()->GetTitle()); in BookmarkModelLoaded()
1244 node = model_->other_node(); in OnMenuButtonClicked()
1281 node = model_->other_node(); in ButtonPressed()
1316 parent = model_->other_node(); in ShowContextMenuForView()
[all …]
Dbookmark_menu_delegate.cc228 if (node == model->other_node() || node == model->mobile_node()) { in GetDropOperation()
278 if (drop_node == model->other_node() || in OnPerformDrop()
303 (nodes[0]->parent() == GetBookmarkModel()->other_node() && in ShowContextMenu()
444 BuildMenuForPermanentNode(model->other_node(), IDR_BOOKMARK_BAR_FOLDER, menu, in BuildMenusForPermanentNodes()
Dbookmark_menu_delegate_unittest.cc96 model_->AddURL(model_->other_node(), 0, ASCIIToUTF16("oa"), in AddTestData()
99 model_->AddFolder(model_->other_node(), 1, ASCIIToUTF16("OF1")); in AddTestData()
/external/chromium_org/components/bookmarks/browser/
Dbookmark_utils_unittest.cc79 const BookmarkNode* node1 = model->AddURL(model->other_node(), in TEST_F()
83 const BookmarkNode* node2 = model->AddURL(model->other_node(), in TEST_F()
88 model->AddFolder(model->other_node(), 0, ASCIIToUTF16("foo")); in TEST_F()
137 const BookmarkNode* node1 = model->AddURL(model->other_node(), in TEST_F()
141 model->AddURL(model->other_node(), in TEST_F()
146 model->AddFolder(model->other_node(), 0, ASCIIToUTF16("Folder")); in TEST_F()
173 const BookmarkNode* node1 = model->AddURL(model->other_node(), in TEST_F()
177 model->AddURL(model->other_node(), in TEST_F()
183 model->AddFolder(model->other_node(), 0, ASCIIToUTF16("Folder")); in TEST_F()
211 const BookmarkNode* node1 = model->AddURL(model->other_node(), in TEST_F()
[all …]
Dbookmark_model_unittest.cc316 const BookmarkNode* other_node = model_->other_node(); in TEST_F() local
317 ASSERT_TRUE(other_node != NULL); in TEST_F()
318 EXPECT_EQ(0, other_node->child_count()); in TEST_F()
319 EXPECT_EQ(BookmarkNode::OTHER_NODE, other_node->type()); in TEST_F()
326 EXPECT_TRUE(bb_node->id() != other_node->id()); in TEST_F()
328 EXPECT_TRUE(other_node->id() != mobile_node->id()); in TEST_F()
347 new_node->id() != model_->other_node()->id() && in TEST_F()
368 new_node->id() != model_->other_node()->id() && in TEST_F()
412 new_node->id() != model_->other_node()->id() && in TEST_F()
432 new_node->id() != model_->other_node()->id() && in TEST_F()
[all …]
Dbookmark_index_unittest.cc74 model_->AddURL(model_->other_node(), static_cast<int>(i), in AddBookmarks()
274 model_->AddURL(model_->other_node(), 0, UTF8ToUTF16(data[i].title), url); in TEST_F()
375 model_->Remove(model_->other_node(), 0); in TEST_F()
387 model_->SetTitle(model_->other_node()->GetChild(0), ASCIIToUTF16("blah")); in TEST_F()
405 const BookmarkNode* n1 = model_->AddURL(model_->other_node(), 0, in TEST_F()
438 model->other_node(), i, UTF8ToUTF16(data[i].title), data[i].url); in TEST_F()
Dbookmark_codec_unittest.cc77 AssertNodesEqual(expected->other_node(), actual->other_node())); in AssertModelsEqual()
167 AsMutable(model->other_node()), in Decode()
223 CheckIDs(model->other_node(), &assigned_ids); in ExpectIDsUnique()
382 const BookmarkNode* other = decoded_model->other_node(); in TEST_F()
Dbookmark_codec.cc56 model->other_node(), in Encode()
439 BookmarkNode* other_node, in ReassignIDs() argument
443 ReassignIDsHelper(other_node); in ReassignIDs()
Dbookmark_codec.h129 BookmarkNode* other_node,
/external/chromium_org/chrome/browser/extensions/api/bookmarks/
Dbookmark_api_helpers_unittest.cc40 node_ = model_->AddURL(model_->other_node(), 0, base::ASCIIToUTF16("Digg"), in SetUp()
44 model_->AddURL(model_->other_node(), 0, base::ASCIIToUTF16("News"), in SetUp()
47 model_->other_node(), 0, base::ASCIIToUTF16("outer folder")); in SetUp()
70 model_->other_node(), in TEST_F()
79 model_->other_node(), in TEST_F()
147 RemoveNode(model_, client_, model_->other_node()->id(), true, &error)); in TEST_F()
170 EXPECT_EQ(3, model_->other_node()->child_count()); in TEST_F()
173 EXPECT_EQ(2, model_->other_node()->child_count()); in TEST_F()
178 GetMetaInfo(*model_->other_node(), &id_to_meta_info_map); in TEST_F()
184 base::Int64ToString(model_->other_node()->id()), &value)); in TEST_F()
/external/chromium_org/chrome/browser/sync/
Dprofile_sync_service_bookmark_unittest.cc702 EXPECT_EQ(root->GetIndexOf(model_->other_node()), 2); in ExpectModelMatch()
705 EXPECT_EQ(root->GetIndexOf(model_->other_node()), 1); in ExpectModelMatch()
738 model_associator_->GetSyncIdFromChromeId(model_->other_node()->id()); in other_bookmarks_id()
812 model_->AddFolder(model_->other_node(), 0, base::ASCIIToUTF16("foobar")); in TEST_F()
1024 EXPECT_EQ(1, model_->other_node()->child_count()); in TEST_F()
1034 EXPECT_EQ(1, model_->other_node()->child_count()); in TEST_F()
1058 child_count = model_->other_node()->child_count(); in TEST_F()
1069 EXPECT_EQ(model_->other_node()->child_count(), child_count); in TEST_F()
1106 model_->AddFolder(model_->other_node(), 0, base::ASCIIToUTF16(names[i])); in TEST_F()
1107 model_->AddURL(model_->other_node(), 0, base::ASCIIToUTF16(names[i]), url); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/android/bookmarks/
Dbookmarks_bridge.cc213 env, j_result_obj, bookmark_model_->other_node()->id(), in GetTopLevelFolderParentIDs()
214 GetBookmarkType(bookmark_model_->other_node())); in GetTopLevelFolderParentIDs()
250 const BookmarkNode* other_node = bookmark_model_->other_node(); in GetTopLevelFolderIDs() local
251 for (int i = 0; i < other_node->child_count(); ++i) { in GetTopLevelFolderIDs()
252 const BookmarkNode* node = other_node->GetChild(i); in GetTopLevelFolderIDs()
287 const BookmarkNode* other_node = bookmark_model_->other_node(); in GetUncategorizedBookmarkIDs() local
288 for (int i = 0; i < other_node->child_count(); ++i) { in GetUncategorizedBookmarkIDs()
289 const BookmarkNode* node = other_node->GetChild(i); in GetUncategorizedBookmarkIDs()
307 const BookmarkNode* other = bookmark_model_->other_node(); in GetAllFoldersWithDepths()
381 const BookmarkNode* other_node = bookmark_model_->other_node(); in GetOtherFolderId() local
[all …]
/external/chromium_org/chrome/browser/history/android/
Dbookmark_model_sql_handler_unittest.cc105 row.set_parent_id(bookmark_model_->other_node()->id()); in TEST_F()
165 row.set_parent_id(bookmark_model_->other_node()->id()); in TEST_F()
222 row.set_parent_id(bookmark_model_->other_node()->id()); in TEST_F()
230 EXPECT_EQ(2, bookmark_model_->other_node()->child_count()); in TEST_F()
242 EXPECT_EQ(1, bookmark_model_->other_node()->child_count()); in TEST_F()
/external/chromium_org/chrome/browser/autocomplete/
Dbookmark_provider_unittest.cc95 const BookmarkNode* other_node = model_->other_node(); in SetUp() local
99 model_->AddURL(other_node, other_node->child_count(), in SetUp()
/external/chromium_org/chrome/browser/bookmarks/
Dchrome_bookmark_client_unittest.cc155 EXPECT_TRUE(model_->other_node()->empty()); in TEST_F()
236 EXPECT_FALSE(client_->IsDescendantOfManagedNode(model_->other_node())); in TEST_F()
275 const BookmarkNode* user_node = model_->AddURL(model_->other_node(), in TEST_F()
Dbookmark_html_writer_unittest.cc215 model->other_node(), 0, url1_title, url1, t1, NULL); in TEST_F()
217 model->other_node(), 1, url2_title, url2, t2, NULL); in TEST_F()
218 const BookmarkNode* f3 = model->AddFolder(model->other_node(), 2, f3_title); in TEST_F()
/external/chromium_org/components/enhanced_bookmarks/
Denhanced_bookmark_model_unittest.cc63 return AddBookmark("Some title", bookmark_model_->other_node()); in AddBookmark()
67 return AddFolder("Some title", bookmark_model_->other_node()); in AddFolder()
368 bookmark_model_->AddURL(bookmark_model_->other_node(), in TEST_F()
452 const BookmarkNode* parent = bookmark_model_->other_node(); in TEST_F()
489 const BookmarkNode* parent = bookmark_model_->other_node(); in TEST_F()
Denhanced_bookmark_utils_unittest.cc30 return model->AddURL(model->other_node(), in AddBookmark()
Denhanced_bookmark_utils.cc73 nodes.push_back(model->other_node()); in PrimaryPermanentNodes()
/external/chromium_org/components/policy/core/browser/
Dmanaged_bookmarks_tracker_unittest.cc175 EXPECT_TRUE(model_->other_node()->empty()); in TEST_F()
185 EXPECT_TRUE(model_->other_node()->empty()); in TEST_F()
282 EXPECT_FALSE(IsManaged(model_->other_node())); in TEST_F()
/external/chromium_org/chrome/browser/ui/bookmarks/
Drecently_used_folders_combo_model.cc66 RemoveNode(model->other_node()); in RecentlyUsedFoldersComboModel()
80 items_.push_back(Item(model->other_node(), Item::TYPE_NODE)); in RecentlyUsedFoldersComboModel()
/external/chromium_org/chrome/browser/ui/cocoa/bookmarks/
Dbookmark_model_observer_for_cocoa_unittest.mm52 model->Move(node, model->other_node(), 0);
Dbookmark_menu_bridge.mm98 if (!model->other_node()->empty()) {
101 model->other_node(),
111 if (model->other_node()->empty())

12