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

Unified Diff: base/environment_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 | « base/environment.cc ('k') | base/nss_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/environment_unittest.cc
diff --git a/base/environment_unittest.cc b/base/environment_unittest.cc
index 302a0d0f59347450603541904ab7804172f17735..ba48123ed8b5077a790465b9e07c5b509bab9e94 100644
--- a/base/environment_unittest.cc
+++ b/base/environment_unittest.cc
@@ -23,12 +23,12 @@ TEST_F(EnvironmentTest, HasVar) {
EXPECT_TRUE(env->HasVar("PATH"));
}
-TEST_F(EnvironmentTest, SetEnvVar) {
+TEST_F(EnvironmentTest, SetVar) {
scoped_ptr<base::Environment> env(base::Environment::Create());
const char kFooUpper[] = "FOO";
const char kFooLower[] = "foo";
- EXPECT_TRUE(env->SetEnv(kFooUpper, kFooLower));
+ EXPECT_TRUE(env->SetVar(kFooUpper, kFooLower));
// Now verify that the environment has the new variable.
EXPECT_TRUE(env->HasVar(kFooUpper));
@@ -44,7 +44,7 @@ TEST_F(EnvironmentTest, UnSetVar) {
const char kFooUpper[] = "FOO";
const char kFooLower[] = "foo";
// First set some environment variable.
- EXPECT_TRUE(env->SetEnv(kFooUpper, kFooLower));
+ EXPECT_TRUE(env->SetVar(kFooUpper, kFooLower));
// Now verify that the environment has the new variable.
EXPECT_TRUE(env->HasVar(kFooUpper));
« no previous file with comments | « base/environment.cc ('k') | base/nss_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698