diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 01:03:37 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 01:03:37 +0000 |
commit | c87bcf000fde1dd7194b5e40e8c9f1058700dd9d (patch) | |
tree | 96a15051e2b4c4fffec09174936c50654a52587f /base/environment_unittest.cc | |
parent | 75464782c1f117bc736cb253c8df39572cc389c9 (diff) | |
download | chromium_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 'base/environment_unittest.cc')
-rw-r--r-- | base/environment_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/environment_unittest.cc b/base/environment_unittest.cc index 302a0d0..ba48123 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)); |