Lines Matching refs:Os
60 os_ = std::unique_ptr<Os>(new Os(std::unique_ptr<RawOs>(raw_os_))); in OsTest()
64 std::unique_ptr<Os> os_;
101 constexpr std::tuple<int, Os::Errno> kExpectedResult{kFakeValidFd, 0}; in TEST_F()
107 constexpr Os::Errno kError = EINVAL; in TEST_F()
111 constexpr std::tuple<int, Os::Errno> kExpectedResult{Os::kInvalidFd, kError}; in TEST_F()
122 const Os::Timestamp received = os_->GetTimestamp(CLOCK_REALTIME); in TEST_F()
136 Nanosleep(Pointee(EqualsTimespec({0, Os::kMaxNanos})), _)); in TEST_F()
137 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
147 Nanosleep(Pointee(EqualsTimespec({0, Os::kMaxNanos})), _)); in TEST_F()
148 os_->Nanosleep(Os::kMaxNanos + 1); in TEST_F()
160 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
178 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
190 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
199 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{buffer.size(), 0}; in TEST_F()
212 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kDatagramSize, 0}; in TEST_F()
225 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kDatagramSize, 0}; in TEST_F()
236 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, 0}; in TEST_F()
243 constexpr Os::Errno kError = EBADF; in TEST_F()
248 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, kError}; in TEST_F()
259 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{buffer.size(), 0}; in TEST_F()
270 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kBytesWritten, 0}; in TEST_F()
279 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, 0}; in TEST_F()
285 constexpr Os::Errno kError = EBADF; in TEST_F()
290 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, kError}; in TEST_F()
296 constexpr Os::Errno kError = EBADF; in TEST_F()
301 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, kError}; in TEST_F()
325 ON_CALL(*raw_os_, Nanosleep(Pointee(EqualsTimespec({0, Os::kMaxNanos})), _)) in TEST_F()
327 EXPECT_DEATH(os_->Nanosleep(Os::kMaxNanos), "Unexpected error"); in TEST_F()