Change-Id: I095af8c0849827c7ab0e8a7127213e59086d90d1
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
tizen_base::Bundle reply =
dbus::RequestBroker::GetInst().SendData(dbus::Command::GET, b);
- tizen_base::Bundle serialized(reply.GetString(dbus::kCmdDataKey));
+ std::string str = reply.GetString(dbus::kCmdDataKey);
+ if (str.empty()) {
+ LOG(ERROR) << "Failed to load theme info of " << id;
+ return nullptr;
+ }
+ tizen_base::Bundle serialized(str);
if (serialized.IsEmpty()) {
LOG(ERROR) << "Failed to load theme info of id: " << id;
return nullptr;
ret = theme_loader_load(loader_handle_, nullptr, &theme_handle);
EXPECT_EQ(ret, THEME_MANAGER_ERROR_INVALID_PARAMETER);
+
+ ret = theme_loader_load(loader_handle_, "not_exist_theme", &theme_handle);
+ EXPECT_EQ(ret, THEME_MANAGER_ERROR_IO_ERROR);
}
TEST_F(ThemeLoaderTest, QueryID) {