#include "ui/views/controls/tree/tree_view.h"
using base::ASCIIToUTF16;
+using base::UTF8ToUTF16;
using base::Time;
using base::TimeDelta;
using content::BrowserThread;
CreateEditor(profile_.get(), NULL,
BookmarkEditor::EditDetails::EditNode(GetNode("a")),
BookmarkEditorView::SHOW_TREE);
- SetTitleText(L"new_a");
+ SetTitleText(ASCIIToUTF16("new_a"));
ApplyEdits(editor_tree_model()->GetRoot()->GetChild(0));
BookmarkEditor::EditDetails::EditNode(GetNode("a")),
BookmarkEditorView::SHOW_TREE);
- SetURLText(base::UTF8ToWide(GURL(base_path() + "new_a").spec()));
+ SetURLText(UTF8ToUTF16(GURL(base_path() + "new_a").spec()));
ApplyEdits(editor_tree_model()->GetRoot()->GetChild(0));
BookmarkEditor::EditDetails::EditNode(GetNode("a")),
BookmarkEditorView::SHOW_TREE);
- SetURLText(base::UTF8ToWide(GURL(base_path() + "new_a").spec()));
+ SetURLText(UTF8ToUTF16(GURL(base_path() + "new_a").spec()));
ApplyEdits(editor_tree_model()->GetRoot()->GetChild(1));
bb_node, 1, GURL(), base::string16()),
BookmarkEditorView::SHOW_TREE);
- SetURLText(base::UTF8ToWide(GURL(base_path() + "a").spec()));
- SetTitleText(L"new_a");
+ SetURLText(UTF8ToUTF16(GURL(base_path() + "a").spec()));
+ SetTitleText(ASCIIToUTF16("new_a"));
ApplyEdits(editor_tree_model()->GetRoot()->GetChild(0));
model_->other_node()->GetChild(0)),
BookmarkEditorView::NO_TREE);
- SetURLText(base::UTF8ToWide(GURL(base_path() + "a").spec()));
- SetTitleText(L"new_a");
+ SetURLText(UTF8ToUTF16(GURL(base_path() + "a").spec()));
+ SetTitleText(ASCIIToUTF16("new_a"));
ApplyEdits(NULL);
model_->other_node()->GetChild(0)),
BookmarkEditorView::NO_TREE);
- SetTitleText(L"new_a");
+ SetTitleText(ASCIIToUTF16("new_a"));
ApplyEdits(NULL);
// The url field shouldn't be visible.
EXPECT_FALSE(URLTFHasParent());
- SetTitleText(L"new_F");
+ SetTitleText(ASCIIToUTF16("new_F"));
ApplyEdits(editor_tree_model()->GetRoot()->GetChild(0));
CreateEditor(profile_.get(), model_->bookmark_bar_node(),
details, BookmarkEditorView::SHOW_TREE);
- SetTitleText(L"new_F");
+ SetTitleText(ASCIIToUTF16("new_F"));
// Create the folder in the 'other' folder.
ApplyEdits(editor_tree_model()->GetRoot()->GetChild(1));
BookmarkEditorView::SHOW_TREE);
ExpandAndSelect();
- SetURLText(base::UTF8ToWide(GURL(base_path() + "a").spec()));
- SetTitleText(L"new_a");
+ SetURLText(UTF8ToUTF16(GURL(base_path() + "a").spec()));
+ SetTitleText(ASCIIToUTF16("new_a"));
NewFolder();
ASSERT_TRUE(tree_view()->editor() != NULL);