| 929 | #endif |
| 930 | |
| 931 | std::unique_ptr<internal::IConnection, void(*)(internal::IConnection*)> createPseudoConnection() |
| 932 | { |
| 933 | auto deleter = [](internal::IConnection* con) |
| 934 | { |
| 935 | delete con; // NOLINT(cppcoreguidelines-owning-memory) |
| 936 | pseudoConnectionDestroyed = true; |
| 937 | }; |
| 938 | |
| 939 | return {internal::createPseudoConnection().release(), std::move(deleter)}; |
| 940 | } |
| 941 | |
| 942 | internal::IConnection& getPseudoConnectionInstance() |
| 943 | { |