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

Unified Diff: app/l10n_util_unittest.cc

Issue 2836088: base: rename Environment::SetEnv to Environment::SetVar. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/environment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/l10n_util_unittest.cc
diff --git a/app/l10n_util_unittest.cc b/app/l10n_util_unittest.cc
index 9106ee26e284957f62383b30d95d06a34afa6fae..85c5296570b7406f2818f1e3686260fc17d70690 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
« no previous file with comments | « no previous file | base/environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698