{ AUL_K_COMPLICATION_MODE, kUpdateRequest}
};
- return AppRequest(COMPLICATION_UPDATE_REQUEST, uid)
+ int ret = AppRequest(COMPLICATION_UPDATE_REQUEST, uid)
.With(std::move(b))
.SetAppId(provider_appid)
.Send();
+ if (ret < 0)
+ return ret;
+
+ return AUL_R_OK;
}
extern "C" API int aul_complication_launch_with_extra_data(const char* appid,
{ key, value }
};
- return AppRequest(COMPLICATION_UPDATE_REQUEST, uid)
+ int ret = AppRequest(COMPLICATION_UPDATE_REQUEST, uid)
.With(std::move(b))
.SetAppId(provider_appid)
.Send();
+ if (ret < 0)
+ return ret;
+
+ return AUL_R_OK;
}
EXPECT_CALL(GetMock<SocketMock>(), recv(_, _, _, _))
.Times(1)
.WillOnce(Invoke([](int fd, void* buf, size_t n, int flags) -> ssize_t {
- int ret = AUL_R_OK;
+ int ret = getpid();
memcpy(buf, &ret, sizeof(int));
return sizeof(int);
}));
EXPECT_CALL(GetMock<SocketMock>(), recv(_, _, _, _))
.Times(1)
.WillOnce(Invoke([](int fd, void* buf, size_t n, int flags) -> ssize_t {
- int ret = AUL_R_OK;
+ int ret = getpid();
memcpy(buf, &ret, sizeof(int));
return sizeof(int);
}));