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_; member in android::wifilogd::__anonf09ed4820111::OsTest
102 EXPECT_EQ(kExpectedResult, os_->GetControlSocket(kSocketName)); in TEST_F()
112 EXPECT_EQ(kExpectedResult, os_->GetControlSocket(kSocketName)); in TEST_F()
122 const Os::Timestamp received = os_->GetTimestamp(CLOCK_REALTIME); in TEST_F()
131 os_->Nanosleep(kSleepTimeNsec); in TEST_F()
137 os_->Nanosleep(Os::kMaxNanos); in TEST_F()
142 os_->Nanosleep(0); 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()
201 os_->ReceiveDatagram(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
214 os_->ReceiveDatagram(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
227 os_->ReceiveDatagram(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
238 os_->ReceiveDatagram(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
250 os_->ReceiveDatagram(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
260 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
271 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
280 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
291 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
302 EXPECT_EQ(kExpectedResult, os_->Write(kFakeFd, buffer.data(), buffer.size())); in TEST_F()
316 EXPECT_DEATH(os_->GetTimestamp(CLOCK_REALTIME), "Check failed"); in TEST_F()
321 EXPECT_DEATH(os_->GetTimestamp(CLOCK_REALTIME), "Unexpected error"); in TEST_F()
327 EXPECT_DEATH(os_->Nanosleep(Os::kMaxNanos), "Unexpected error"); in TEST_F()
334 os_->ReceiveDatagram(kFakeFd, buffer.data(), GetMaxVal<size_t>()), in TEST_F()
341 EXPECT_DEATH(os_->Write(kFakeFd, buffer.data(), GetMaxVal<size_t>()), in TEST_F()
350 EXPECT_DEATH(os_->Write(kFakeFd, buffer.data(), buffer.size()), in TEST_F()