bool TestExtStream::test_stream_wrapper_restore() { int64_t count = f_count(f_stream_get_wrappers()); VS(f_stream_wrapper_unregister("http"), true); VS(f_count(f_stream_get_wrappers()), count - 1); VS(f_stream_wrapper_restore("http"), true); VS(f_count(f_stream_get_wrappers()), count); return Count(true); }
bool TestExtStream::test_stream_get_wrappers() { Array w = f_stream_get_wrappers(); VS(f_in_array("file", w), true); VS(f_in_array("http", w), true); return Count(true); }
bool TestExtStream::test_stream_get_wrappers() { try { f_stream_get_wrappers(); } catch (NotSupportedException e) { return Count(true); } return Count(false); }