summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellcheck_unittest.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 00:34:12 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 00:34:12 +0000
commit74c8b421637393234e24b227929b89eba0883e76 (patch)
tree4d24222844a03a330142eb3210604cc4b67c4c4a /chrome/browser/spellcheck_unittest.cc
parent3b166f49b912091f6e45e500d1617fd7609b6fe1 (diff)
downloadchromium_src-74c8b421637393234e24b227929b89eba0883e76.zip
chromium_src-74c8b421637393234e24b227929b89eba0883e76.tar.gz
chromium_src-74c8b421637393234e24b227929b89eba0883e76.tar.bz2
Change SpellChecker::Language to be an ASCII string.
Review URL: http://codereview.chromium.org/41028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11407 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellcheck_unittest.cc')
-rw-r--r--chrome/browser/spellcheck_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/spellcheck_unittest.cc b/chrome/browser/spellcheck_unittest.cc
index cf3fe1b..8a9731f 100644
--- a/chrome/browser/spellcheck_unittest.cc
+++ b/chrome/browser/spellcheck_unittest.cc
@@ -265,7 +265,7 @@ TEST_F(SpellCheckTest, SpellCheckStrings_EN_US) {
ASSERT_FALSE(hunspell_directory.empty());
scoped_refptr<SpellChecker> spell_checker(new SpellChecker(
- hunspell_directory, L"en-US", NULL, FilePath()));
+ hunspell_directory, "en-US", NULL, FilePath()));
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
size_t input_length = 0;
@@ -318,7 +318,7 @@ TEST_F(SpellCheckTest, SpellCheckSuggestions_EN_US) {
ASSERT_FALSE(hunspell_directory.empty());
scoped_refptr<SpellChecker> spell_checker(new SpellChecker(
- hunspell_directory, L"en-US", NULL, FilePath()));
+ hunspell_directory, "en-US", NULL, FilePath()));
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
std::vector<std::wstring> suggestions;
@@ -366,7 +366,7 @@ TEST_F(SpellCheckTest, DISABLED_SpellCheckAddToDictionary_EN_US) {
ASSERT_FALSE(hunspell_directory.empty());
scoped_refptr<SpellChecker> spell_checker(new SpellChecker(
- hunspell_directory, L"en-US", NULL, custom_dictionary_file));
+ hunspell_directory, "en-US", NULL, custom_dictionary_file));
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
// Add the word to spellchecker.
@@ -392,7 +392,7 @@ TEST_F(SpellCheckTest, DISABLED_SpellCheckAddToDictionary_EN_US) {
// Now initialize another spellchecker to see that AddToWord is permanent.
scoped_refptr<SpellChecker> spell_checker_new(new SpellChecker(
- hunspell_directory, L"en-US", NULL, custom_dictionary_file));
+ hunspell_directory, "en-US", NULL, custom_dictionary_file));
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
// Now check whether it is added to Spellchecker.
@@ -434,7 +434,7 @@ TEST_F(SpellCheckTest, DISABLED_SpellCheckSuggestionsAddToDictionary_EN_US) {
ASSERT_FALSE(hunspell_directory.empty());
scoped_refptr<SpellChecker> spell_checker(new SpellChecker(
- hunspell_directory, L"en-US", NULL, custom_dictionary_file));
+ hunspell_directory, "en-US", NULL, custom_dictionary_file));
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
// Add the word to spellchecker.