Change-Id: I62f83c847a4789559958187d0dbe0127bccb1d8f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
extern "C" EXPORT_API int bundle_get_type(bundle* b, const char* key) {
if (b == nullptr || key == nullptr) {
- set_last_result(BUNDLE_ERROR_KEY_NOT_AVAILABLE);
+ set_last_result(BUNDLE_ERROR_INVALID_PARAMETER);
return BUNDLE_TYPE_NONE;
}
TEST_F(BundleTest, bundle_get_type_N) {
int type = bundle_get_type(nullptr, nullptr);
- ASSERT_EQ(get_last_result(), BUNDLE_ERROR_KEY_NOT_AVAILABLE);
+ ASSERT_EQ(get_last_result(), BUNDLE_ERROR_INVALID_PARAMETER);
ASSERT_EQ(type, BUNDLE_TYPE_NONE);
bundle* b = GetHandle();