summaryrefslogtreecommitdiffstats
path: root/chrome/browser/shell_integration_unittest.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-31 16:55:40 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-31 16:55:40 +0000
commitfc586c7e48d90dac7963906bf34c8f6382b55846 (patch)
tree6357b8467129dbf4a5c970f1f7c4645da2bd9e51 /chrome/browser/shell_integration_unittest.cc
parentf44f18cee25dd55a14f1df0e99ac2c9e3e9214bc (diff)
downloadchromium_src-fc586c7e48d90dac7963906bf34c8f6382b55846.zip
chromium_src-fc586c7e48d90dac7963906bf34c8f6382b55846.tar.gz
chromium_src-fc586c7e48d90dac7963906bf34c8f6382b55846.tar.bz2
Reland r54418 - base: Add UnSetEnv function to EnvVarGetter API.
This reverts commit 7ed083f6d2b1b0a09c8bf9470386ba3e38f2feed. It was reverted due to crbug.com/50663 started failing when I land this patch, so I'm relanding it now again. BUG=None TEST=trybots TBR=thestig@chromium.org Review URL: http://codereview.chromium.org/3043018 Review URL: http://codereview.chromium.org/3076020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54451 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_integration_unittest.cc')
-rw-r--r--chrome/browser/shell_integration_unittest.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/shell_integration_unittest.cc b/chrome/browser/shell_integration_unittest.cc
index 0514781..dbaa290 100644
--- a/chrome/browser/shell_integration_unittest.cc
+++ b/chrome/browser/shell_integration_unittest.cc
@@ -32,8 +32,7 @@ namespace {
// Provides mock environment variables values based on a stored map.
class MockEnvVarGetter : public base::EnvVarGetter {
public:
- MockEnvVarGetter() {
- }
+ MockEnvVarGetter() {}
void Set(const std::string& name, const std::string& value) {
variables_[name] = value;
@@ -49,7 +48,12 @@ class MockEnvVarGetter : public base::EnvVarGetter {
}
virtual bool SetEnv(const char* variable_name, const std::string& new_value) {
- NOTIMPLEMENTED();
+ ADD_FAILURE();
+ return false;
+ }
+
+ virtual bool UnSetEnv(const char* variable_name) {
+ ADD_FAILURE();
return false;
}