OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <gtk/gtk.h> | 5 #include <gtk/gtk.h> |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/bookmarks/bookmark_model.h" | 11 #include "chrome/browser/bookmarks/bookmark_model.h" |
(...skipping 307 matching lines...) Loading... |
319 gtk_entry_set_text(GTK_ENTRY(editor.name_entry_), "new_a"); | 319 gtk_entry_set_text(GTK_ENTRY(editor.name_entry_), "new_a"); |
320 | 320 |
321 editor.ApplyEdits(); | 321 editor.ApplyEdits(); |
322 | 322 |
323 const BookmarkNode* other_node = profile_->GetBookmarkModel()->other_node(); | 323 const BookmarkNode* other_node = profile_->GetBookmarkModel()->other_node(); |
324 ASSERT_EQ(2, other_node->GetChildCount()); | 324 ASSERT_EQ(2, other_node->GetChildCount()); |
325 | 325 |
326 const BookmarkNode* new_node = other_node->GetChild(0); | 326 const BookmarkNode* new_node = other_node->GetChild(0); |
327 EXPECT_EQ(ASCIIToUTF16("new_a"), new_node->GetTitle()); | 327 EXPECT_EQ(ASCIIToUTF16("new_a"), new_node->GetTitle()); |
328 } | 328 } |
OLD | NEW |