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

Unified Diff: base/environment_unittest.cc

Issue 3029062: base: rename Environment::GetEnv to Environment::GetVar. (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/xdg_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 ba48123ed8b5077a790465b9e07c5b509bab9e94..3d7ab3cc44b05191556459f4b630e54ac5b4f3a7 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);
}
« no previous file with comments | « base/environment.cc ('k') | base/xdg_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698