Index: chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc |
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc b/chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc |
index 042dc1240ee6c52364cd62eaaefe730abb967175..b0597086b8cafde5f99a9b909a5b3ce378ab3f44 100644 |
--- a/chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc |
+++ b/chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc |
@@ -132,9 +132,13 @@ TEST_F(BookmarkEditorViewTest, ModelsMatch) { |
CreateEditor(profile_.get(), NULL, BookmarkEditor::EditDetails(), |
BookmarkEditorView::SHOW_TREE); |
BookmarkEditorView::EditorNode* editor_root = editor_tree_model()->GetRoot(); |
- // The root should have two children, one for the bookmark bar node, |
- // the other for the 'other bookmarks' folder. |
- ASSERT_EQ(2, editor_root->child_count()); |
+ // The root should have two or three children: bookmark bar, other bookmarks |
+ // and conditionally synced bookmarks. |
+ if (model_->synced_node()->IsVisible()) { |
+ ASSERT_EQ(3, editor_root->child_count()); |
+ } else { |
+ ASSERT_EQ(2, editor_root->child_count()); |
+ } |
BookmarkEditorView::EditorNode* bb_node = editor_root->GetChild(0); |
// The root should have 2 nodes: folder F1 and F2. |