Home
last modified time | relevance | path

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

/external/openscreen/platform/impl/
Dscoped_pipe.h29 class ScopedPipe {
33 ScopedPipe() : pipe_(Traits::kInvalidValue) {} in ScopedPipe() function
34 explicit ScopedPipe(PipeType pipe) : pipe_(pipe) {} in ScopedPipe() function
35 ScopedPipe(const ScopedPipe&) = delete;
36 ScopedPipe(ScopedPipe&& other) : pipe_(other.release()) {} in ScopedPipe() function
37 ~ScopedPipe() { in ~ScopedPipe()
42 ScopedPipe& operator=(ScopedPipe&& other) {
56 bool operator==(const ScopedPipe& other) const {
59 bool operator!=(const ScopedPipe& other) const { return !(*this == other); }
67 using ScopedFd = ScopedPipe<IntFdTraits>;
Dscoped_pipe_unittest.cc45 { ScopedPipe<IntTraits> x; } in TEST_F()
48 { ScopedPipe<IntTraits> x(3); } in TEST_F()
53 ScopedPipe<IntTraits> x(3); in TEST_F()
56 ScopedPipe<IntTraits> y; in TEST_F()
62 ScopedPipe<IntTraits> x(3); in TEST_F()
63 ScopedPipe<IntTraits> y(std::move(x)); in TEST_F()
72 ScopedPipe<IntTraits> x(3); in TEST_F()
73 ScopedPipe<IntTraits> y(4); in TEST_F()
86 ScopedPipe<IntTraits> x; in TEST_F()
87 ScopedPipe<IntTraits> y; in TEST_F()
[all …]
/external/libbrillo/brillo/
Dunittest_utils.cc17 const int ScopedPipe::kPipeSize = 4096;
19 ScopedPipe::ScopedPipe() { in ScopedPipe() function in brillo::ScopedPipe
29 ScopedPipe::~ScopedPipe() { in ~ScopedPipe()
Dunittest_utils.h14 class ScopedPipe {
19 ScopedPipe();
20 ~ScopedPipe();
Dprocess_test.cc89 ScopedPipe pipe; in TEST()
384 ScopedPipe pipe; in TEST_F()
393 ScopedPipe pipe; in TEST_F()
/external/angle/util/posix/
Dtest_utils_posix.cpp47 struct ScopedPipe struct
49 ~ScopedPipe() in ~ScopedPipe() argument
319 ScopedPipe mStdoutPipe;
320 ScopedPipe mStderrPipe;
/external/angle/util/windows/
Dtest_utils_win.cpp26 struct ScopedPipe struct
28 ~ScopedPipe() in ~ScopedPipe() argument
379 ScopedPipe mStdoutPipe;
380 ScopedPipe mStderrPipe;