Home
last modified time | relevance | path

Searched refs:UniqueFd (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/runtime_core/libpandabase/os/
Dunique_fd.h34 class UniqueFd {
36 explicit UniqueFd(int fd = -1) noexcept
41 UniqueFd(const UniqueFd &other_fd) = delete;
42 UniqueFd &operator=(const UniqueFd &other_fd) = delete;
44 UniqueFd(UniqueFd &&other_fd) noexcept in UniqueFd() function
49 UniqueFd &operator=(UniqueFd &&other_fd) noexcept
55 ~UniqueFd() in ~UniqueFd()
/arkcompiler/runtime_core/libpandabase/tests/
Dunique_fd_test.cpp32 HWTEST(UniqueFd, Construct, testing::ext::TestSize.Level0)
35 auto fd_a = UniqueFd();
36 auto fd_b = UniqueFd(dupDF.stdinValue);
37 auto fd_c = UniqueFd(dupDF.stdoutValue);
38 auto fd_d = UniqueFd(dupDF.stferrValue);
60 HWTEST(UniqueFd, Equal, testing::ext::TestSize.Level0)
63 auto fd_a = UniqueFd();
64 auto fd_b = UniqueFd(dupDF.stdinValue);
65 auto fd_c = UniqueFd(dupDF.stdoutValue);
66 auto fd_d = UniqueFd(dupDF.stferrValue);
[all …]