Example #1
0
bool TestExtStream::test_stream_wrapper_restore() {
  try {
    f_stream_wrapper_restore("");
  } catch (NotSupportedException e) {
    return Count(true);
  }
  return Count(false);
}
Example #2
0
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);
}