Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc

Issue 176843022: Move UTF16ToASCII, remove WideToASCII. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/views/bookmarks/bookmark_editor_view.h" 5 #include "chrome/browser/ui/views/bookmarks/bookmark_editor_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 424
425 NewFolder(); 425 NewFolder();
426 ASSERT_TRUE(tree_view()->editor() != NULL); 426 ASSERT_TRUE(tree_view()->editor() != NULL);
427 tree_view()->editor()->SetText(ASCIIToUTF16("modified")); 427 tree_view()->editor()->SetText(ASCIIToUTF16("modified"));
428 ApplyEdits(); 428 ApplyEdits();
429 429
430 // Verify the new folder was added and title set appropriately. 430 // Verify the new folder was added and title set appropriately.
431 ASSERT_EQ(1, parent->child_count()); 431 ASSERT_EQ(1, parent->child_count());
432 const BookmarkNode* new_folder = parent->GetChild(0); 432 const BookmarkNode* new_folder = parent->GetChild(0);
433 ASSERT_TRUE(new_folder->is_folder()); 433 ASSERT_TRUE(new_folder->is_folder());
434 EXPECT_EQ("modified", UTF16ToASCII(new_folder->GetTitle())); 434 EXPECT_EQ("modified", base::UTF16ToASCII(new_folder->GetTitle()));
435 } 435 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_search_prerenderer_unittest.cc ('k') | chrome/browser/ui/webui/ntp/android/promo_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698