summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/tests/malloc_debug_config_tests.cpp
diff options
context:
space:
mode:
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);
}
};