Partially fix up windows unit tests. Try out the Visual Studio Test Manager
This commit is contained in:
1 parent
dfdcbd5c85
commit
da1a36bf11
9 files changed
+33
-55
No files matched your search
@@ -22,7 +22,7 @@ struct ApiServerCore {
|
||||
qbus::RPCServer rpc;
|
||||
};
|
||||
|
||||
BTS_EXPORT ApiServerCore* api_server_create(Quickbus* pbus, const char* type_name, const char* service_qualifier, raw_rpc_request_callback cb, void* extra) {
|
||||
CAPI ApiServerCore* api_server_create(Quickbus* pbus, const char* type_name, const char* service_qualifier, raw_rpc_request_callback cb, void* extra) {
|
||||
bts_assert(pbus);
|
||||
// Invalid characters in qualifier: +
|
||||
for (auto ch : { '+', '_' }) {
|
||||
@@ -38,7 +38,7 @@ BTS_EXPORT ApiServerCore* api_server_create(Quickbus* pbus, const char* type_nam
|
||||
});
|
||||
}
|
||||
|
||||
BTS_EXPORT void api_server_call_callback(ReplyHandler** ppvhandler, const uint8_t* buffer, int length) {
|
||||
CAPI void api_server_call_callback(ReplyHandler** ppvhandler, const uint8_t* buffer, int length) {
|
||||
bts_assert(ppvhandler);
|
||||
bts_assert(*ppvhandler);
|
||||
LOG(Api,Diag,"Send rpc reply: {}",reinterpret_cast<intptr_t>(*ppvhandler));
|
||||
@@ -50,14 +50,14 @@ BTS_EXPORT void api_server_call_callback(ReplyHandler** ppvhandler, const uint8_
|
||||
*pphandler = nullptr;
|
||||
}
|
||||
|
||||
BTS_EXPORT TableHandle api_server_create_table(ApiServerCore* pserver, const char* method_and_qualifier) {
|
||||
CAPI TableHandle api_server_create_table(ApiServerCore* pserver, const char* method_and_qualifier) {
|
||||
bts_assert(pserver);
|
||||
auto topic = stream_topic(pserver->topic, method_and_qualifier);
|
||||
LOG(Api,Info,"Create table: {}",topic.value());
|
||||
return new qbus::TablePublisher(pserver->qbus, topic);
|
||||
}
|
||||
|
||||
BTS_EXPORT void api_server_update_table(TableHandle htable, StreamUpdate* raw_changes, int change_count) {
|
||||
CAPI void api_server_update_table(TableHandle htable, StreamUpdate* raw_changes, int change_count) {
|
||||
if (change_count > 0) {
|
||||
bts_assert(htable);
|
||||
qbus::TablePublisher* ptable = reinterpret_cast<qbus::TablePublisher*>(htable);
|
||||
@@ -72,7 +72,7 @@ BTS_EXPORT void api_server_update_table(TableHandle htable, StreamUpdate* raw_ch
|
||||
}
|
||||
}
|
||||
|
||||
BTS_EXPORT void api_server_destroy_table(qbus::TablePublisher* ptable) {
|
||||
CAPI void api_server_destroy_table(qbus::TablePublisher* ptable) {
|
||||
if (ptable) {
|
||||
ptable->disconnect();
|
||||
delete ptable;
|
||||
|
||||
Reference in new issue
Block a user