diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-07 02:57:59 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-07 02:57:59 +0000 |
commit | 3ba7e0887015ba6a59579c4de08a6d609f851c23 (patch) | |
tree | d4b3ab95c9fa344346e2a1d3357916771587dcd1 /base/environment_unittest.cc | |
parent | 3eac24a2b4c9438196899e62ac2f3ae5f03ba039 (diff) | |
download | chromium_src-3ba7e0887015ba6a59579c4de08a6d609f851c23.zip chromium_src-3ba7e0887015ba6a59579c4de08a6d609f851c23.tar.gz chromium_src-3ba7e0887015ba6a59579c4de08a6d609f851c23.tar.bz2 |
base: rename Environment::GetEnv to Environment::GetVar.
This is the part 4 and the latest of this series.
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/3029062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55326 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 ba48123..3d7ab3c 100644 --- a/base/environment_unittest.cc +++ b/base/environment_unittest.cc @@ -9,11 +9,11 @@ typedef PlatformTest EnvironmentTest; -TEST_F(EnvironmentTest, GetEnvVar) { +TEST_F(EnvironmentTest, GetVar) { // Every setup should have non-empty PATH... scoped_ptr<base::Environment> env(base::Environment::Create()); std::string env_value; - EXPECT_TRUE(env->GetEnv("PATH", &env_value)); + EXPECT_TRUE(env->GetVar("PATH", &env_value)); EXPECT_NE(env_value, ""); } @@ -34,7 +34,7 @@ TEST_F(EnvironmentTest, SetVar) { EXPECT_TRUE(env->HasVar(kFooUpper)); std::string var_value; - EXPECT_TRUE(env->GetEnv(kFooUpper, &var_value)); + EXPECT_TRUE(env->GetVar(kFooUpper, &var_value)); EXPECT_EQ(var_value, kFooLower); } |