Skip to content

Automated fix for refs/heads/test_582901035 #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: test_582901035
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Package.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions build_autogenerated.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gRPC-C++.podspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gRPC-Core.podspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions grpc.gemspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,7 @@ grpc_cc_library(
"promise_status",
"seq_state",
"status_flag",
"//:gpr",
"//:gpr_platform",
],
)
Expand Down
5 changes: 2 additions & 3 deletions src/core/ext/transport/inproc/inproc_transport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class InprocClientTransport final : public Transport, public ClientTransport {
call_handler](ClientMetadataHandle md) {
auto call_initiator = server_transport->AcceptCall(*md);
if (!call_initiator.ok()) return call_initiator.status();
ForwardCall(std::move(call_handler), std::move(*call_initiator),
ForwardCall(call_handler, std::move(*call_initiator),
std::move(md));
return absl::OkStatus();
},
Expand Down Expand Up @@ -162,8 +162,7 @@ RefCountedPtr<Channel> MakeLameChannel(absl::string_view why,
std::string(error.message()).c_str());
intptr_t integer;
grpc_status_code status = GRPC_STATUS_INTERNAL;
if (grpc_error_get_int(error, grpc_core::StatusIntProperty::kRpcStatus,
&integer)) {
if (grpc_error_get_int(error, StatusIntProperty::kRpcStatus, &integer)) {
status = static_cast<grpc_status_code>(integer);
}
return RefCountedPtr<Channel>(Channel::FromC(grpc_lame_client_channel_create(
Expand Down
1 change: 1 addition & 0 deletions src/core/lib/promise/detail/promise_like.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <grpc/support/port_platform.h>

#include <type_traits>
#include <utility>

#include "absl/meta/type_traits.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core/lib/promise/for_each.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@

#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "status_flag.h"

#include <grpc/support/log.h>

#include "src/core/lib/gprpp/construct_destruct.h"
#include "src/core/lib/promise/activity.h"
#include "src/core/lib/promise/detail/promise_factory.h"
#include "src/core/lib/promise/poll.h"
#include "src/core/lib/promise/status_flag.h"
#include "src/core/lib/promise/trace.h"

namespace grpc_core {
Expand Down
8 changes: 4 additions & 4 deletions src/core/lib/promise/status_flag.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ struct StatusCastImpl<absl::Status, const Success&> {
class StatusFlag {
public:
explicit StatusFlag(bool value) : value_(value) {}
StatusFlag(Failure) : value_(false) {}
StatusFlag(Success) : value_(true) {}
explicit StatusFlag(Failure) : value_(false) {}
explicit StatusFlag(Success) : value_(true) {}

bool ok() const { return value_; }

Expand Down Expand Up @@ -75,8 +75,8 @@ struct StatusCastImpl<absl::Status, const StatusFlag&> {
template <typename T>
class ValueOrFailure {
public:
ValueOrFailure(T value) : value_(std::move(value)) {}
ValueOrFailure(Failure) {}
explicit ValueOrFailure(T value) : value_(std::move(value)) {}
explicit ValueOrFailure(Failure) {}

static ValueOrFailure FromOptional(absl::optional<T> value) {
return ValueOrFailure{std::move(value)};
Expand Down
2 changes: 2 additions & 0 deletions src/core/lib/promise/try_seq.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include "absl/status/status.h"
#include "absl/status/statusor.h"

#include <grpc/support/log.h>

#include "src/core/lib/promise/detail/basic_seq.h"
#include "src/core/lib/promise/detail/promise_like.h"
#include "src/core/lib/promise/detail/seq_state.h"
Expand Down
2 changes: 2 additions & 0 deletions test/core/promise/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ grpc_cc_test(
"//src/core:map",
"//src/core:memory_quota",
"//src/core:pipe",
"//src/core:promise_status",
"//src/core:resource_quota",
"//src/core:seq",
"//src/core:try_seq",
Expand Down Expand Up @@ -368,6 +369,7 @@ grpc_cc_test(
"//src/core:memory_quota",
"//src/core:pipe",
"//src/core:poll",
"//src/core:promise_status",
"//src/core:resource_quota",
"//src/core:seq",
],
Expand Down
1 change: 1 addition & 0 deletions test/core/promise/for_each_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/promise/activity.h"
#include "src/core/lib/promise/detail/status.h"
#include "src/core/lib/promise/inter_activity_pipe.h"
#include "src/core/lib/promise/join.h"
#include "src/core/lib/promise/map.h"
Expand Down
1 change: 1 addition & 0 deletions test/core/promise/map_pipe_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/promise/activity.h"
#include "src/core/lib/promise/detail/status.h"
#include "src/core/lib/promise/for_each.h"
#include "src/core/lib/promise/join.h"
#include "src/core/lib/promise/map.h"
Expand Down
1 change: 0 additions & 1 deletion test/core/util/port_server_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#ifndef GRPC_TEST_CORE_UTIL_PORT_SERVER_CLIENT_H
#define GRPC_TEST_CORE_UTIL_PORT_SERVER_CLIENT_H

#include <memory>
// C interface to port_server.py

// must be synchronized with tools/run_tests/python_utils/start_port_server.py
Expand Down
1 change: 1 addition & 0 deletions tools/doxygen/Doxyfile.c++.internal

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/doxygen/Doxyfile.core.internal

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.