summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 01:03:37 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 01:03:37 +0000
commitc87bcf000fde1dd7194b5e40e8c9f1058700dd9d (patch)
tree96a15051e2b4c4fffec09174936c50654a52587f /app
parent75464782c1f117bc736cb253c8df39572cc389c9 (diff)
downloadchromium_src-c87bcf000fde1dd7194b5e40e8c9f1058700dd9d.zip
chromium_src-c87bcf000fde1dd7194b5e40e8c9f1058700dd9d.tar.gz
chromium_src-c87bcf000fde1dd7194b5e40e8c9f1058700dd9d.tar.bz2
base: rename Environment::SetEnv to Environment::SetVar.
This is the part 3 of this series. One more remaining. Splitting this into small parts, so it is more easy to review and reduce the size of the CL. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/2836088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55168 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r--app/l10n_util_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/l10n_util_unittest.cc b/app/l10n_util_unittest.cc
index 9106ee2..85c5296 100644
--- a/app/l10n_util_unittest.cc
+++ b/app/l10n_util_unittest.cc
@@ -144,23 +144,23 @@ TEST_F(L10nUtilTest, GetAppLocale) {
// Test the support of LANGUAGE environment variable.
SetICUDefaultLocale("en-US");
- env->SetEnv("LANGUAGE", "xx:fr_CA");
+ env->SetVar("LANGUAGE", "xx:fr_CA");
EXPECT_EQ("fr", l10n_util::GetApplicationLocale(""));
- env->SetEnv("LANGUAGE", "xx:yy:en_gb.utf-8@quot");
+ env->SetVar("LANGUAGE", "xx:yy:en_gb.utf-8@quot");
EXPECT_EQ("en-GB", l10n_util::GetApplicationLocale(""));
- env->SetEnv("LANGUAGE", "xx:zh-hk");
+ env->SetVar("LANGUAGE", "xx:zh-hk");
EXPECT_EQ("zh-TW", l10n_util::GetApplicationLocale(""));
// We emulate gettext's behavior here, which ignores LANG/LC_MESSAGES/LC_ALL
// when LANGUAGE is specified. If no language specified in LANGUAGE is valid,
// then just fallback to the default language, which is en-US for us.
SetICUDefaultLocale("fr-FR");
- env->SetEnv("LANGUAGE", "xx:yy");
+ env->SetVar("LANGUAGE", "xx:yy");
EXPECT_EQ("en-US", l10n_util::GetApplicationLocale(""));
- env->SetEnv("LANGUAGE", "/fr:zh_CN");
+ env->SetVar("LANGUAGE", "/fr:zh_CN");
EXPECT_EQ("zh-CN", l10n_util::GetApplicationLocale(""));
// Make sure the follow tests won't be affected by LANGUAGE environment