Lines Matching refs:Os

61     os_ = std::unique_ptr<Os>(new Os(std::unique_ptr<RawOs>(raw_os_)));  in OsTest()
65 std::unique_ptr<Os> os_;
102 constexpr std::tuple<int, Os::Errno> kExpectedResult{kFakeValidFd, 0}; in TEST_F()
108 constexpr Os::Errno kError = EINVAL; in TEST_F()
112 constexpr std::tuple<int, Os::Errno> kExpectedResult{Os::kInvalidFd, kError}; in TEST_F()
123 const Os::Timestamp received = os_->GetTimestamp(CLOCK_REALTIME); in TEST_F()
137 Nanosleep(Pointee(EqualsTimespec({0, Os::kMaxNanos})), _)); in TEST_F()
138 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
148 Nanosleep(Pointee(EqualsTimespec({0, Os::kMaxNanos})), _)); in TEST_F()
149 os_->Nanosleep(Os::kMaxNanos + 1); in TEST_F()
161 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
179 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
191 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
200 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{buffer.size(), 0}; in TEST_F()
213 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kDatagramSize, 0}; in TEST_F()
226 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kDatagramSize, 0}; in TEST_F()
237 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, 0}; in TEST_F()
244 constexpr Os::Errno kError = EBADF; in TEST_F()
249 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, kError}; in TEST_F()
260 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{buffer.size(), 0}; in TEST_F()
271 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kBytesWritten, 0}; in TEST_F()
280 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, 0}; in TEST_F()
286 constexpr Os::Errno kError = EBADF; in TEST_F()
291 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, kError}; in TEST_F()
297 constexpr Os::Errno kError = EBADF; in TEST_F()
302 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, kError}; in TEST_F()
326 ON_CALL(*raw_os_, Nanosleep(Pointee(EqualsTimespec({0, Os::kMaxNanos})), _)) in TEST_F()
328 EXPECT_DEATH(os_->Nanosleep(Os::kMaxNanos), "Unexpected error"); in TEST_F()