summaryrefslogtreecommitdiffstats
path: root/base/environment_unittest.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-04 23:43:20 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-04 23:43:20 +0000
commit9432ade948544ddd1c0c982cc1201e06061e8bb3 (patch)
tree9c9c40c596e199cc738b2e09ad074f03f2e1b8c4 /base/environment_unittest.cc
parent3a77e46f0b4616c4f2a33b76cdb0de75dfb8a5d5 (diff)
downloadchromium_src-9432ade948544ddd1c0c982cc1201e06061e8bb3.zip
chromium_src-9432ade948544ddd1c0c982cc1201e06061e8bb3.tar.gz
chromium_src-9432ade948544ddd1c0c982cc1201e06061e8bb3.tar.bz2
base: rename Environment::HasEnv to Environment::HasVar.
This is the part 2 of this series. More two comming. 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/3035050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54996 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/environment_unittest.cc')
-rw-r--r--base/environment_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/base/environment_unittest.cc b/base/environment_unittest.cc
index f37b682..302a0d0 100644
--- a/base/environment_unittest.cc
+++ b/base/environment_unittest.cc
@@ -17,10 +17,10 @@ TEST_F(EnvironmentTest, GetEnvVar) {
EXPECT_NE(env_value, "");
}
-TEST_F(EnvironmentTest, HasEnvVar) {
+TEST_F(EnvironmentTest, HasVar) {
// Every setup should have PATH...
scoped_ptr<base::Environment> env(base::Environment::Create());
- EXPECT_TRUE(env->HasEnv("PATH"));
+ EXPECT_TRUE(env->HasVar("PATH"));
}
TEST_F(EnvironmentTest, SetEnvVar) {
@@ -31,7 +31,7 @@ TEST_F(EnvironmentTest, SetEnvVar) {
EXPECT_TRUE(env->SetEnv(kFooUpper, kFooLower));
// Now verify that the environment has the new variable.
- EXPECT_TRUE(env->HasEnv(kFooUpper));
+ EXPECT_TRUE(env->HasVar(kFooUpper));
std::string var_value;
EXPECT_TRUE(env->GetEnv(kFooUpper, &var_value));
@@ -47,11 +47,11 @@ TEST_F(EnvironmentTest, UnSetVar) {
EXPECT_TRUE(env->SetEnv(kFooUpper, kFooLower));
// Now verify that the environment has the new variable.
- EXPECT_TRUE(env->HasEnv(kFooUpper));
+ EXPECT_TRUE(env->HasVar(kFooUpper));
// Finally verify that the environment variable was erased.
EXPECT_TRUE(env->UnSetVar(kFooUpper));
// And check that the variable has been unset.
- EXPECT_FALSE(env->HasEnv(kFooUpper));
+ EXPECT_FALSE(env->HasVar(kFooUpper));
}