- Add fake function for sqlite3_release_memory()
Change-Id: I6f14ca62413d78ce40099d0af9d83b65fae802a1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
return 0;
}
+int __sqlite3_release_memory(int n) {
+ return 0;
+}
+
} // namespace
namespace tizen_cpp {
.Times(1);
EXPECT_CALL(core, OnTrimMemory())
.Times(1);
+ EXPECT_CALL(GetMock<DlMock>(), dlsym(_, _))
+ .WillRepeatedly(Invoke([&](void* handle, const char* name) -> void* {
+ if (!strcmp(name, "sqlite3_release_memory"))
+ return (void*)__sqlite3_release_memory;
+
+ return nullptr;
+ }));
::DummyArgs da;
core.SetFeature(AppCoreBase::FEATURE_BACKGROUND_MANAGEMENT);