Home
last modified time | relevance | path

Searched refs:sockfd_ (Results 1 – 15 of 15) sorted by relevance

/external/llvm-project/llvm/utils/unittest/googletest/src/
Dgtest-internal-inl.h1058 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()
1063 if (sockfd_ != -1) in ~SocketWriter()
1069 GTEST_CHECK_(sockfd_ != -1) in Send()
1073 if (write(sockfd_, message.c_str(), len) != len) { in Send()
1086 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
1089 close(sockfd_); in CloseConnection()
1090 sockfd_ = -1; in CloseConnection()
1093 int sockfd_; // socket file descriptor variable
Dgtest.cc3781 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
3800 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != NULL; in MakeConnection()
3802 sockfd_ = socket( in MakeConnection()
3804 if (sockfd_ != -1) { in MakeConnection()
3806 if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { in MakeConnection()
3807 close(sockfd_); in MakeConnection()
3808 sockfd_ = -1; in MakeConnection()
3815 if (sockfd_ == -1) { in MakeConnection()
/external/googletest/googletest/src/
Dgtest-internal-inl.h1087 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()
1092 if (sockfd_ != -1) in ~SocketWriter()
1098 GTEST_CHECK_(sockfd_ != -1) in Send()
1102 if (write(sockfd_, message.c_str(), len) != static_cast<ssize_t>(len)) { in Send()
1115 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
1118 close(sockfd_); in CloseConnection()
1119 sockfd_ = -1; in CloseConnection()
1122 int sockfd_; // socket file descriptor variable
Dgtest.cc4893 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
4912 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != nullptr; in MakeConnection()
4914 sockfd_ = socket( in MakeConnection()
4916 if (sockfd_ != -1) { in MakeConnection()
4918 if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { in MakeConnection()
4919 close(sockfd_); in MakeConnection()
4920 sockfd_ = -1; in MakeConnection()
4927 if (sockfd_ == -1) { in MakeConnection()
/external/mesa3d/src/gtest/src/
Dgtest-internal-inl.h1077 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()
1082 if (sockfd_ != -1) in ~SocketWriter()
1088 GTEST_CHECK_(sockfd_ != -1) in Send()
1092 if (write(sockfd_, message.c_str(), len) != static_cast<ssize_t>(len)) { in Send()
1105 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
1108 close(sockfd_); in CloseConnection()
1109 sockfd_ = -1; in CloseConnection()
1112 int sockfd_; // socket file descriptor variable
Dgtest.cc4382 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
4401 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != nullptr; in MakeConnection()
4403 sockfd_ = socket( in MakeConnection()
4405 if (sockfd_ != -1) { in MakeConnection()
4407 if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { in MakeConnection()
4408 close(sockfd_); in MakeConnection()
4409 sockfd_ = -1; in MakeConnection()
4416 if (sockfd_ == -1) { in MakeConnection()
/external/libaom/libaom/third_party/googletest/src/googletest/src/
Dgtest-internal-inl.h1080 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()
1085 if (sockfd_ != -1) CloseConnection(); in ~SocketWriter()
1090 GTEST_CHECK_(sockfd_ != -1) in Send()
1094 if (write(sockfd_, message.c_str(), len) != static_cast<ssize_t>(len)) { in Send()
1106 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
1109 close(sockfd_); in CloseConnection()
1110 sockfd_ = -1; in CloseConnection()
1113 int sockfd_; // socket file descriptor variable
Dgtest.cc4435 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
4454 for (addrinfo *cur_addr = servinfo; sockfd_ == -1 && cur_addr != nullptr; in MakeConnection()
4456 sockfd_ = socket(cur_addr->ai_family, cur_addr->ai_socktype, in MakeConnection()
4458 if (sockfd_ != -1) { in MakeConnection()
4460 if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { in MakeConnection()
4461 close(sockfd_); in MakeConnection()
4462 sockfd_ = -1; in MakeConnection()
4469 if (sockfd_ == -1) { in MakeConnection()
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-internal-inl.h1058 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()
1063 if (sockfd_ != -1) in ~SocketWriter()
1069 GTEST_CHECK_(sockfd_ != -1) in Send()
1073 if (write(sockfd_, message.c_str(), len) != len) { in Send()
1086 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
1089 close(sockfd_); in CloseConnection()
1090 sockfd_ = -1; in CloseConnection()
1093 int sockfd_; // socket file descriptor variable
Dgtest.cc4265 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
4284 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != NULL; in MakeConnection()
4286 sockfd_ = socket( in MakeConnection()
4288 if (sockfd_ != -1) { in MakeConnection()
4290 if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { in MakeConnection()
4291 close(sockfd_); in MakeConnection()
4292 sockfd_ = -1; in MakeConnection()
4299 if (sockfd_ == -1) { in MakeConnection()
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/src/
Dgtest-internal-inl.h1072 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()
1077 if (sockfd_ != -1) in ~SocketWriter()
1083 GTEST_CHECK_(sockfd_ != -1) in Send()
1087 if (write(sockfd_, message.c_str(), len) != len) { in Send()
1100 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
1103 close(sockfd_); in CloseConnection()
1104 sockfd_ = -1; in CloseConnection()
1107 int sockfd_; // socket file descriptor variable
Dgtest.cc4331 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
4350 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != nullptr; in MakeConnection()
4352 sockfd_ = socket( in MakeConnection()
4354 if (sockfd_ != -1) { in MakeConnection()
4356 if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { in MakeConnection()
4357 close(sockfd_); in MakeConnection()
4358 sockfd_ = -1; in MakeConnection()
4365 if (sockfd_ == -1) { in MakeConnection()
/external/llvm/utils/unittest/googletest/src/
Dgtest.cc3308 : sockfd_(-1), host_name_(host), port_num_(port) { in StreamingListener()
3314 if (sockfd_ != -1) in ~StreamingListener()
3382 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
3385 close(sockfd_); in CloseConnection()
3386 sockfd_ = -1; in CloseConnection()
3391 GTEST_CHECK_(sockfd_ != -1) in Send()
3395 if (write(sockfd_, message.c_str(), len) != len) { in Send()
3402 int sockfd_; // socket file descriptor member in testing::internal::StreamingListener
3434 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
3453 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != NULL; in MakeConnection()
[all …]
/external/fmtlib/test/
Dgmock-gtest-all.cc1491 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()
1496 if (sockfd_ != -1) CloseConnection(); in ~SocketWriter()
1501 GTEST_CHECK_(sockfd_ != -1) in Send()
1505 if (write(sockfd_, message.c_str(), len) != len) { in Send()
1517 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
1520 close(sockfd_); in CloseConnection()
1521 sockfd_ = -1; in CloseConnection()
1524 int sockfd_; // socket file descriptor member in testing::internal::StreamingListener::SocketWriter
4792 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
4811 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != NULL; in MakeConnection()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/gmock-1.8.0/
Dgmock-gtest-all.cc1465 : sockfd_(-1), host_name_(host), port_num_(port) { in SocketWriter()
1470 if (sockfd_ != -1) in ~SocketWriter()
1476 GTEST_CHECK_(sockfd_ != -1) in Send()
1480 if (write(sockfd_, message.c_str(), len) != len) { in Send()
1493 GTEST_CHECK_(sockfd_ != -1) in CloseConnection()
1496 close(sockfd_); in CloseConnection()
1497 sockfd_ = -1; in CloseConnection()
1500 int sockfd_; // socket file descriptor member in testing::internal::StreamingListener::SocketWriter
5229 GTEST_CHECK_(sockfd_ == -1) in MakeConnection()
5248 for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != NULL; in MakeConnection()
[all …]