summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_bookmarks_unittest.cc
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 16:12:07 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 16:12:07 +0000
commit3deb16cc9c3938cbe4e496930ff428389f8b35d1 (patch)
treec94080257e1e9b3cf2f3b5bdfe163b591fa1779e /chrome/browser/extensions/extension_bookmarks_unittest.cc
parent24f413c12946b59b6b1a6c9147b1a7980c16ae6e (diff)
downloadchromium_src-3deb16cc9c3938cbe4e496930ff428389f8b35d1.zip
chromium_src-3deb16cc9c3938cbe4e496930ff428389f8b35d1.tar.gz
chromium_src-3deb16cc9c3938cbe4e496930ff428389f8b35d1.tar.bz2
Remove wstrings from bookmarks, part 3.
Get rid of wstring BookmarkModel::AddGroup() (and convert lots of uses; also convert many uses of the wstring AddURL() as drive-by's). BUG=23581 TEST=builds and passes tests Review URL: http://codereview.chromium.org/3115017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56689 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_bookmarks_unittest.cc')
-rw-r--r--chrome/browser/extensions/extension_bookmarks_unittest.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/chrome/browser/extensions/extension_bookmarks_unittest.cc b/chrome/browser/extensions/extension_bookmarks_unittest.cc
index e0dd270..2381c91 100644
--- a/chrome/browser/extensions/extension_bookmarks_unittest.cc
+++ b/chrome/browser/extensions/extension_bookmarks_unittest.cc
@@ -4,6 +4,7 @@
#include "testing/gtest/include/gtest/gtest.h"
+#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/extensions/extension_bookmark_helpers.h"
@@ -14,16 +15,16 @@ class ExtensionBookmarksTest : public testing::Test {
public:
virtual void SetUp() {
model_.reset(new BookmarkModel(NULL));
- model_->AddURL(model_->other_node(), 0, L"Digg",
+ model_->AddURL(model_->other_node(), 0, ASCIIToUTF16("Digg"),
GURL("http://www.reddit.com"));
- model_->AddURL(model_->other_node(), 0, L"News",
+ model_->AddURL(model_->other_node(), 0, ASCIIToUTF16("News"),
GURL("http://www.foxnews.com"));
folder =
- model_->AddGroup(model_->other_node(), 0, L"outer folder");
- model_->AddGroup(folder, 0, L"inner folder 1");
- model_->AddGroup(folder, 0, L"inner folder 2");
- model_->AddURL(folder, 0, L"Digg", GURL("http://reddit.com"));
- model_->AddURL(folder, 0, L"CNet", GURL("http://cnet.com"));
+ model_->AddGroup(model_->other_node(), 0, ASCIIToUTF16("outer folder"));
+ model_->AddGroup(folder, 0, ASCIIToUTF16("inner folder 1"));
+ model_->AddGroup(folder, 0, ASCIIToUTF16("inner folder 2"));
+ model_->AddURL(folder, 0, ASCIIToUTF16("Digg"), GURL("http://reddit.com"));
+ model_->AddURL(folder, 0, ASCIIToUTF16("CNet"), GURL("http://cnet.com"));
}
scoped_ptr<BookmarkModel> model_;