Home
last modified time | relevance | path

Searched refs:makeScopeGuard (Results 1 – 7 of 7) sorted by relevance

/external/zstd/contrib/pzstd/test/
DPzstdTest.cpp35 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
46 auto errorGuard = makeScopeGuard([&] { in TEST()
70 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
81 auto errorGuard = makeScopeGuard([&] { in TEST()
104 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
111 auto closeGuard = makeScopeGuard([&] { std::fclose(fd); }); in TEST()
134 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
DRoundTripTest.cpp32 auto guard = makeScopeGuard([&] { std::fclose(fd); }); in writeData()
67 auto newlineGuard = makeScopeGuard([] { std::fprintf(stderr, "\n"); }); in main()
73 auto inputGuard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in main()
DRoundTrip.h28 auto guard = makeScopeGuard([&] { in check()
64 auto guard = makeScopeGuard([&] { in roundTrip()
/external/zstd/contrib/pzstd/
DPzstd.cpp170 auto printErrorGuard = makeScopeGuard([&] { in pzstdMain()
182 auto closeInputGuard = makeScopeGuard([&] { std::fclose(inputFd); }); in pzstdMain()
193 auto closeOutputGuard = makeScopeGuard([&] { std::fclose(outputFd); }); in pzstdMain()
270 auto guard = makeScopeGuard([&] { out->finish(); }); in compress()
385 auto chunksGuard = makeScopeGuard([&] { chunks.finish(); }); in asyncCompressChunks()
396 auto inGuard = makeScopeGuard([&] { in->finish(); }); in asyncCompressChunks()
428 auto guard = makeScopeGuard([&] { out->finish(); }); in decompress()
497 auto framesGuard = makeScopeGuard([&] { frames.finish(); }); in asyncDecompressFrames()
509 auto inGuard = makeScopeGuard([&] { in->finish(); }); in asyncDecompressFrames()
575 auto lineClearGuard = makeScopeGuard([&state] { in writeFile()
DOptions.cpp346 makeScopeGuard([&] { UTIL_freeFileNamesTable(files); }); in parse()
/external/zstd/contrib/pzstd/utils/test/
DScopeGuardTest.cpp17 auto guard = makeScopeGuard([&] { EXPECT_TRUE(false); }); in TEST()
25 auto guard = makeScopeGuard([&] { executed = true; }); in TEST()
/external/zstd/contrib/pzstd/utils/
DScopeGuard.h47 ScopeGuard<Function> makeScopeGuard(Function&& function) { in makeScopeGuard() function