Home
last modified time | relevance | path

Searched refs:child_count (Results 1 – 25 of 262) sorted by relevance

1234567891011

/external/chromium_org/ui/base/models/
Dtree_node_model_unittest.cc86 EXPECT_EQ(2, root->child_count()); in TEST_F()
87 EXPECT_EQ(2, child1->child_count()); in TEST_F()
88 EXPECT_EQ(0, child2->child_count()); in TEST_F()
141 EXPECT_EQ(3, root.child_count()); in TEST_F()
142 EXPECT_EQ(1, child1.child_count()); in TEST_F()
143 EXPECT_EQ(3, foo->child_count()); in TEST_F()
148 EXPECT_EQ(0, root.child_count()); in TEST_F()
151 EXPECT_EQ(1, child1.child_count()); in TEST_F()
152 EXPECT_EQ(3, foo->child_count()); in TEST_F()
292 EXPECT_EQ(0, root.child_count()); in TEST_F()
[all …]
/external/chromium/chrome/browser/ui/cocoa/bookmarks/
Dbookmark_editor_base_controller_unittest.mm92 EXPECT_EQ(4, root.child_count());
95 EXPECT_EQ(3, child->child_count());
97 EXPECT_EQ(0, subchild->child_count());
99 EXPECT_EQ(0, subchild->child_count());
101 EXPECT_EQ(0, subchild->child_count());
104 EXPECT_EQ(5, child->child_count());
106 EXPECT_EQ(1, subchild->child_count());
108 EXPECT_EQ(0, subsubchild->child_count());
110 EXPECT_EQ(0, subchild->child_count());
112 EXPECT_EQ(0, subchild->child_count());
[all …]
Dbookmark_editor_controller_unittest.mm53 ASSERT_EQ(default_parent_->child_count(), 1);
62 ASSERT_EQ(default_parent_->child_count(), 1);
73 ASSERT_EQ(default_parent_->child_count(), 1);
82 ASSERT_EQ(default_parent_->child_count(), 1);
303 EXPECT_EQ(4, root.child_count());
305 EXPECT_EQ(3, child->child_count());
307 EXPECT_EQ(0, subchild->child_count());
309 EXPECT_EQ(0, subchild->child_count());
311 EXPECT_EQ(0, subchild->child_count());
314 EXPECT_EQ(4, child->child_count());
[all …]
Dbookmark_name_folder_controller_unittest.mm26 EXPECT_EQ(0, parent->child_count());
38 EXPECT_EQ(0, parent->child_count());
43 EXPECT_EQ(0, parent->child_count());
47 EXPECT_EQ(1, parent->child_count());
62 EXPECT_EQ(2, parent->child_count());
77 EXPECT_EQ(3, parent->child_count());
86 EXPECT_EQ(0, parent->child_count());
99 EXPECT_EQ(1, parent->child_count());
107 EXPECT_EQ(0, parent->child_count());
120 EXPECT_EQ(1, parent->child_count());
[all …]
/external/chromium_org/chrome/browser/undo/
Dbookmark_undo_service_test.cc65 EXPECT_EQ(0, model->other_node()->child_count()); in TEST_F()
89 EXPECT_EQ(1, model->other_node()->child_count()); in TEST_F()
99 EXPECT_EQ(0, model->other_node()->child_count()); in TEST_F()
126 EXPECT_EQ(1, model->other_node()->child_count()); in TEST_F()
133 EXPECT_EQ(1, model->other_node()->child_count()); in TEST_F()
199 ASSERT_EQ(4, model->other_node()->child_count()); in TEST_F()
204 EXPECT_EQ(0, f1->child_count()); in TEST_F()
208 ASSERT_EQ(3, model->other_node()->child_count()); in TEST_F()
212 ASSERT_EQ(1, f1->child_count()); in TEST_F()
232 ASSERT_EQ(1, model->other_node()->child_count()); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/bookmarks/
Dbookmark_editor_base_controller_unittest.mm106 EXPECT_EQ(4, root->child_count());
109 EXPECT_EQ(3, child->child_count());
111 EXPECT_EQ(0, subchild->child_count());
113 EXPECT_EQ(0, subchild->child_count());
115 EXPECT_EQ(0, subchild->child_count());
118 EXPECT_EQ(5, child->child_count());
120 EXPECT_EQ(1, subchild->child_count());
122 EXPECT_EQ(0, subsubchild->child_count());
124 EXPECT_EQ(0, subchild->child_count());
126 EXPECT_EQ(0, subchild->child_count());
[all …]
Dbookmark_name_folder_controller_unittest.mm25 EXPECT_EQ(0, parent->child_count());
36 EXPECT_EQ(0, parent->child_count());
41 EXPECT_EQ(0, parent->child_count());
45 EXPECT_EQ(1, parent->child_count());
60 EXPECT_EQ(2, parent->child_count());
74 EXPECT_EQ(3, parent->child_count());
83 EXPECT_EQ(0, parent->child_count());
95 EXPECT_EQ(1, parent->child_count());
103 EXPECT_EQ(0, parent->child_count());
115 EXPECT_EQ(1, parent->child_count());
[all …]
Dbookmark_editor_controller_unittest.mm57 ASSERT_EQ(default_parent_->child_count(), 1);
66 ASSERT_EQ(default_parent_->child_count(), 1);
77 ASSERT_EQ(default_parent_->child_count(), 1);
86 ASSERT_EQ(default_parent_->child_count(), 1);
357 EXPECT_EQ(4, root->child_count());
359 EXPECT_EQ(3, child->child_count());
361 EXPECT_EQ(0, subchild->child_count());
363 EXPECT_EQ(0, subchild->child_count());
365 EXPECT_EQ(0, subchild->child_count());
368 EXPECT_EQ(4, child->child_count());
[all …]
/external/chromium_org/chrome/browser/android/bookmarks/
Dpartner_bookmarks_shim_unittest.cc50 return model_->AddURL(parent, parent->child_count(), title, url); in AddBookmark()
57 return model_->AddFolder(parent, parent->child_count(), title); in AddFolder()
92 root_partner_node->Add(partner_folder1, root_partner_node->child_count()); in TEST_F()
96 partner_folder1->Add(partner_folder2, partner_folder1->child_count()); in TEST_F()
101 partner_folder1->Add(partner_bookmark1, partner_folder1->child_count()); in TEST_F()
106 partner_folder2->Add(partner_bookmark2, partner_folder2->child_count()); in TEST_F()
135 root_partner_node->Add(partner_bookmark1, root_partner_node->child_count()); in TEST_F()
156 root_partner_node->Add(partner_folder1, root_partner_node->child_count()); in TEST_F()
160 root_partner_node->Add(partner_folder2, root_partner_node->child_count()); in TEST_F()
165 partner_folder1->Add(partner_bookmark1, partner_folder1->child_count()); in TEST_F()
[all …]
/external/chromium_org/ui/views/accessibility/
Dnative_view_accessibility_win_unittest.cc36 LONG child_count = 0; in TEST_F() local
37 ASSERT_EQ(S_OK, content_accessible->get_accChildCount(&child_count)); in TEST_F()
38 ASSERT_EQ(1L, child_count); in TEST_F()
105 LONG child_count = 0; in TEST_F() local
106 ASSERT_EQ(S_OK, root_view_accessible->get_accChildCount(&child_count)); in TEST_F()
107 ASSERT_EQ(1L, child_count); in TEST_F()
118 ASSERT_EQ(S_OK, root_view_accessible->get_accChildCount(&child_count)); in TEST_F()
119 ASSERT_EQ(2L, child_count); in TEST_F()
/external/chromium_org/chrome/browser/ui/views/bookmarks/
Dbookmark_menu_delegate_unittest.cc129 EXPECT_EQ(5, root_item->GetSubmenu()->child_count()); // Includes separator. in TEST_F()
147 EXPECT_EQ(5, root_item->GetSubmenu()->child_count()); // Includes separator. in TEST_F()
156 EXPECT_EQ(5, root_item->GetSubmenu()->child_count()); // Includes separator. in TEST_F()
164 EXPECT_EQ(5, root_item->GetSubmenu()->child_count()); // Includes separator. in TEST_F()
173 EXPECT_EQ(3, root_item->GetSubmenu()->child_count()); // No separator. in TEST_F()
179 EXPECT_EQ(2, root_item->GetSubmenu()->child_count()); // No separator. in TEST_F()
189 EXPECT_EQ(2, root_item->GetSubmenu()->child_count()); // No separator. in TEST_F()
199 EXPECT_EQ(2, root_item->GetSubmenu()->child_count()); // No separator. in TEST_F()
208 EXPECT_EQ(2, root_item->GetSubmenu()->child_count()); // No separator. in TEST_F()
217 EXPECT_EQ(1, root_item->GetSubmenu()->child_count()); // No separator. in TEST_F()
[all …]
Dbookmark_editor_view_unittest.cc161 ASSERT_EQ(3, editor_root->child_count()); in TEST_F()
163 ASSERT_EQ(2, editor_root->child_count()); in TEST_F()
168 ASSERT_EQ(2, bb_node->child_count()); in TEST_F()
173 ASSERT_EQ(1, bb_node->GetChild(0)->child_count()); in TEST_F()
178 ASSERT_EQ(1, other_node->child_count()); in TEST_F()
273 ASSERT_EQ(2, mf2->child_count()); in TEST_F()
281 ASSERT_EQ(1, mf21->child_count()); in TEST_F()
300 ASSERT_EQ(4, bb_node->child_count()); in TEST_F()
322 ASSERT_EQ(2, other_node->child_count()); in TEST_F()
343 ASSERT_EQ(2, other_node->child_count()); in TEST_F()
[all …]
/external/chromium/chrome/browser/ui/views/bookmarks/
Dbookmark_editor_view_unittest.cc137 ASSERT_EQ(2, editor_root->child_count()); in TEST_F()
141 ASSERT_EQ(2, bb_node->child_count()); in TEST_F()
146 ASSERT_EQ(1, bb_node->GetChild(0)->child_count()); in TEST_F()
151 ASSERT_EQ(1, other_node->child_count()); in TEST_F()
239 ASSERT_EQ(2, mf2->child_count()); in TEST_F()
247 ASSERT_EQ(1, mf21->child_count()); in TEST_F()
263 ASSERT_EQ(4, bb_node->child_count()); in TEST_F()
283 ASSERT_EQ(2, other_node->child_count()); in TEST_F()
302 ASSERT_EQ(2, other_node->child_count()); in TEST_F()
325 ASSERT_EQ(4, model_->GetBookmarkBarNode()->child_count()); in TEST_F()
[all …]
/external/chromium/chrome/browser/sync/
Dprofile_sync_service_bookmark_unittest.cc385 if (browser_index == bnode->parent()->child_count() - 1) { in ExpectSyncerNodeMatching()
395 if (bnode->child_count()) { in ExpectSyncerNodeMatching()
721 EXPECT_TRUE(model_->other_node()->child_count() == 1); in TEST_F()
731 EXPECT_TRUE(model_->other_node()->child_count() == 1); in TEST_F()
741 int child_count = 0; in TEST_F() local
755 child_count = model_->other_node()->child_count(); in TEST_F()
756 EXPECT_TRUE(child_count == 0 || child_count == 1); in TEST_F()
766 EXPECT_EQ(model_->other_node()->child_count(), child_count); in TEST_F()
802 EXPECT_TRUE(model_->other_node()->child_count() == 2*arraysize(names)); in TEST_F()
838 EXPECT_EQ(model_->other_node()->child_count(), count); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/sync/test/integration/
Dsingle_client_bookmarks_sync_test.cc122 Move(0, tier1_a_url0, bar, bar->child_count()); in IN_PROC_BROWSER_TEST_F()
123 const BookmarkNode* boa = AddURL(0, bar, bar->child_count(), in IN_PROC_BROWSER_TEST_F()
126 Move(0, tier1_a_url0, top, top->child_count()); in IN_PROC_BROWSER_TEST_F()
128 0, bar, bar->child_count(), L"Seattle Bubble", in IN_PROC_BROWSER_TEST_F()
144 ASSERT_EQ(tier1_a_url0->id(), top->GetChild(top->child_count() - 1)->id()); in IN_PROC_BROWSER_TEST_F()
145 Remove(0, top, top->child_count() - 1); in IN_PROC_BROWSER_TEST_F()
249 EXPECT_EQ(0, GetOtherNode(0)->child_count()); in IN_PROC_BROWSER_TEST_F()
250 EXPECT_EQ(0, GetBookmarkBarNode(0)->child_count()); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/ui/bookmarks/
Dbookmark_editor.cc23 int child_count = parent->child_count(); in CreateNewNode() local
25 details.index <= child_count) ? in CreateNewNode()
26 details.index : child_count; in CreateNewNode()
32 model->AddURL(node, node->child_count(), details.urls[i].second, in CreateNewNode()
160 model->Move(node, new_parent, new_parent->child_count()); in ApplyEditsWithPossibleFolderChange()
Dbookmark_utils.cc80 for (; child_index_ < (*parent_)->child_count(); ++child_index_) { in FindNext()
103 int child_count = 0; in ShouldOpenAll() local
107 child_count++; in ShouldOpenAll()
110 if (child_count < num_bookmark_urls_before_prompting) in ShouldOpenAll()
116 base::IntToString16(child_count)), in ShouldOpenAll()
123 for (int i = 0; i < node->child_count(); ++i) { in ChildURLCountTotal()
214 BookmarkEditor::EditDetails::AddFolder(parent, parent->child_count()); in ShowBookmarkAllTabsDialog()
/external/chromium_org/ui/views/controls/
Dstyled_label_unittest.cc61 ASSERT_EQ(1, styled()->child_count()); in TEST_F()
75 ASSERT_EQ(1, styled()->child_count()); in TEST_F()
92 ASSERT_EQ(1, styled()->child_count()); in TEST_F()
115 ASSERT_EQ(2, styled()->child_count()); in TEST_F()
136 ASSERT_EQ(7, styled()->child_count()); in TEST_F()
155 ASSERT_EQ(2, styled()->child_count()); in TEST_F()
179 ASSERT_EQ(2, styled()->child_count()); in TEST_F()
197 ASSERT_EQ(2, styled()->child_count()); in TEST_F()
233 ASSERT_EQ(1, unstyled.child_count()); in TEST_F()
238 ASSERT_EQ(3, styled()->child_count()); in TEST_F()
[all …]
Dsingle_split_view.cc51 if (child_count() > 1) { in Layout()
73 for (int i = 0; i < 2 && i < child_count(); ++i) { in GetPreferredSize()
105 bool both_visible = child_count() > 1 && child_at(0)->visible() && in GetDividerSize()
115 bool is_trailing_visible = child_count() > 1 && child_at(1)->visible(); in CalculateChildrenBounds()
165 if (child_count() < 2) in OnMouseDragged()
192 if (child_count() < 2) in OnMouseCaptureLost()
211 if (child_count() < 2) in IsPointInDivider()
/external/chromium/chrome/browser/bookmarks/
Dbookmark_model_unittest.cc173 EXPECT_EQ(0, bb_node->child_count()); in TEST_F()
178 EXPECT_EQ(0, other_node->child_count()); in TEST_F()
193 ASSERT_EQ(1, root->child_count()); in TEST_F()
211 ASSERT_EQ(1, root->child_count()); in TEST_F()
233 ASSERT_EQ(0, root->child_count()); in TEST_F()
256 ASSERT_EQ(0, root->child_count()); in TEST_F()
307 EXPECT_EQ(1, root->child_count()); in TEST_F()
309 EXPECT_EQ(1, folder1->child_count()); in TEST_F()
318 EXPECT_EQ(0, root->child_count()); in TEST_F()
590 parent->Add(new_node, parent->child_count()); in PopulateNodeImpl()
[all …]
Dbookmark_model_test_utils.cc26 ASSERT_EQ(expected->child_count(), actual->child_count()); in AssertNodesEqual()
27 for (int i = 0; i < expected->child_count(); ++i) in AssertNodesEqual()
/external/chromium_org/chrome/browser/sync/
Dprofile_sync_service_bookmark_unittest.cc605 if (browser_index == bnode->parent()->child_count() - 1) { in ExpectSyncerNodeMatching()
1003 EXPECT_EQ(1, model_->other_node()->child_count()); in TEST_F()
1013 EXPECT_EQ(1, model_->other_node()->child_count()); in TEST_F()
1023 int child_count = 0; in TEST_F() local
1037 child_count = model_->other_node()->child_count(); in TEST_F()
1038 EXPECT_TRUE(child_count == 0 || child_count == 1); in TEST_F()
1048 EXPECT_EQ(model_->other_node()->child_count(), child_count); in TEST_F()
1084 EXPECT_TRUE(model_->other_node()->child_count() == 2*arraysize(names)); in TEST_F()
1122 EXPECT_EQ(model_->other_node()->child_count(), count); in TEST_F()
1170 EXPECT_EQ(2, model_->other_node()->child_count()); in TEST_F()
[all …]
/external/chromium_org/ui/views/layout/
Dbox_layout.cc39 for (int i = 0; i < host->child_count(); ++i) { in Layout()
64 for (int i = 0; i < host->child_count(); ++i) { in Layout()
88 for (int i = 0; i < host->child_count(); ++i) { in GetPreferredSize()
114 for (int i = 0; i < host->child_count(); ++i) { in GetPreferredSizeForChildWidth()
129 for (int i = 0; i < host->child_count(); ++i) { in GetPreferredSizeForChildWidth()
/external/chromium_org/content/browser/
Dsite_per_process_browsertest.cc443 EXPECT_EQ(0U, root->child_count()); in IN_PROC_BROWSER_TEST_F()
455 ASSERT_EQ(2U, root->child_count()); in IN_PROC_BROWSER_TEST_F()
456 EXPECT_EQ(0U, root->child_at(0)->child_count()); in IN_PROC_BROWSER_TEST_F()
457 EXPECT_EQ(0U, root->child_at(1)->child_count()); in IN_PROC_BROWSER_TEST_F()
477 ASSERT_EQ(3UL, root->child_count()); in IN_PROC_BROWSER_TEST_F()
481 ASSERT_EQ(2UL, root->child_at(0)->child_count()); in IN_PROC_BROWSER_TEST_F()
485 ASSERT_EQ(2UL, root->child_at(2)->child_count()); in IN_PROC_BROWSER_TEST_F()
486 EXPECT_EQ(1UL, root->child_at(2)->child_at(1)->child_count()); in IN_PROC_BROWSER_TEST_F()
487 EXPECT_EQ(0UL, root->child_at(2)->child_at(1)->child_at(0)->child_count()); in IN_PROC_BROWSER_TEST_F()
496 EXPECT_EQ(0UL, root->child_count()); in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium/chrome/browser/extensions/
Dextension_menu_manager_unittest.cc138 ASSERT_EQ(1, item2->child_count()); in TEST_F()
139 ASSERT_EQ(0, item1->child_count()); in TEST_F()
148 ASSERT_EQ(1, item2->child_count()); in TEST_F()
149 ASSERT_EQ(1, item2_child->child_count()); in TEST_F()
161 ASSERT_EQ(0, item2->child_count()); in TEST_F()
251 ASSERT_EQ(1, item1->child_count()); in TEST_F()
255 ASSERT_EQ(0, item1->child_count()); in TEST_F()
256 ASSERT_EQ(1, item2->child_count()); in TEST_F()
261 ASSERT_EQ(1, item1->child_count()); in TEST_F()
263 ASSERT_EQ(1, item2->child_count()); in TEST_F()
[all …]

1234567891011