summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/tests/malloc_debug_config_tests.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2016-11-18 21:33:17 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-11-18 21:33:18 +0000
commitc2395be74a69ef43f53aa6505af4df78bb03df7c (patch)
tree6a3b0d1a67dd93d53c3704489f106148c01b01b7 /libc/malloc_debug/tests/malloc_debug_config_tests.cpp
parenta7e74f09b8db4dbe5ca8c74603f74dc45911aef7 (diff)
parentac81fe8657119c265edcc2f05b3e5b7c5b17ae9f (diff)
Merge "Enable malloc debug using environment variables"
Diffstat (limited to 'libc/malloc_debug/tests/malloc_debug_config_tests.cpp')
-rw-r--r--libc/malloc_debug/tests/malloc_debug_config_tests.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/libc/malloc_debug/tests/malloc_debug_config_tests.cpp b/libc/malloc_debug/tests/malloc_debug_config_tests.cpp
index 49edabae6..f988124fe 100644
--- a/libc/malloc_debug/tests/malloc_debug_config_tests.cpp
+++ b/libc/malloc_debug/tests/malloc_debug_config_tests.cpp
@@ -25,8 +25,6 @@
#include "log_fake.h"
-extern "C" int property_set(const char*, const char*);
-
class MallocDebugConfigTest : public ::testing::Test {
protected:
void SetUp() override {
@@ -38,10 +36,9 @@ class MallocDebugConfigTest : public ::testing::Test {
std::unique_ptr<Config> config;
- bool InitConfig(const char* property_value) {
+ bool InitConfig(const char* options) {
config.reset(new Config);
- property_set("libc.debug.malloc.options", property_value);
- return config->SetFromProperties();
+ return config->Set(options);
}
};