Merge github.com:grpc/grpc into tiefling-buffer

pull/38052/head
Craig Tiller 7 days ago
commit b9a0c3f820
  1. 13
      src/core/lib/promise/poll.h
  2. 1
      test/core/transport/chaotic_good/BUILD
  3. 9
      test/core/transport/chaotic_good/control_endpoint_test.cc
  4. 9
      test/core/transport/chaotic_good/data_endpoints_test.cc

@ -286,6 +286,19 @@ void AbslStringify(Sink& sink, const Poll<T>& poll) {
absl::Format(&sink, "%v", poll.value());
}
template <typename Sink, typename T>
void AbslStringify(Sink& sink, const Poll<absl::StatusOr<T>>& poll) {
if (poll.pending()) {
absl::Format(&sink, "<<pending>>");
return;
}
if (poll.value().ok()) {
absl::Format(&sink, "%v", *poll.value());
} else {
absl::Format(&sink, "%v", poll.value().status());
}
}
template <typename Sink, typename T>
void AbslStringify(Sink& sink, const Poll<absl::optional<T>>& poll) {
if (poll.pending()) {

@ -13,6 +13,7 @@
# limitations under the License.
load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_package")
load("//test/core/call/yodel:grpc_yodel_test.bzl", "grpc_yodel_simple_test")
load("//test/core/test_util:grpc_fuzzer.bzl", "grpc_fuzzer", "grpc_proto_fuzzer")
load("//test/core/call/yodel:grpc_yodel_test.bzl", "grpc_yodel_simple_test")

@ -43,12 +43,3 @@ CONTROL_ENDPOINT_TEST(CanWrite) {
}
} // namespace grpc_core
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
// Must call to create default EventEngine.
grpc_init();
int ret = RUN_ALL_TESTS();
grpc_shutdown();
return ret;
}

@ -117,12 +117,3 @@ DATA_ENDPOINTS_TEST(CanRead) {
}
} // namespace grpc_core
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
// Must call to create default EventEngine.
grpc_init();
int ret = RUN_ALL_TESTS();
grpc_shutdown();
return ret;
}

Loading…
Cancel
Save