-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
quiche: Implement http2_reconstruct_object_impl.h. #6717
quiche: Implement http2_reconstruct_object_impl.h. #6717
Conversation
Signed-off-by: Bin Wu <wub@google.com>
/assign @danzh2010 |
@@ -77,16 +79,30 @@ TEST(Http2PlatformTest, Http2Log) { | |||
HTTP2_DLOG_EVERY_N(ERROR, 2) << "DLOG_EVERY_N(ERROR, 2)"; | |||
} | |||
|
|||
TEST(Http2PlatformTest, Http2MakeUnique) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why adding this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not adding this test, I just moved it up to sort the tests by name alphabetically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right. It was there. Thanks for doing this!
#define CHECK_LE(a, b) CHECK((a) <= (b)) | ||
#define CHECK_NE(a, b) CHECK((a) != (b)) | ||
#define CHECK_EQ(a, b) CHECK((a) == (b)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also added in #6650
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I copied it from there:) I copied it to the exact same location so it shouldn't cause merge conflicts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -77,16 +79,30 @@ TEST(Http2PlatformTest, Http2Log) { | |||
HTTP2_DLOG_EVERY_N(ERROR, 2) << "DLOG_EVERY_N(ERROR, 2)"; | |||
} | |||
|
|||
TEST(Http2PlatformTest, Http2MakeUnique) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right. It was there. Thanks for doing this!
…_object Signed-off-by: Bin Wu <wub@google.com>
…test_tools_random. Signed-off-by: Bin Wu <wub@google.com>
/assign @alyssawilk |
* master: (35 commits) Revert "api: Add total_issued_requests to Upstream Locality and Endpoint Stats. (envoyproxy#6692)" (envoyproxy#6761) Add test for the SocketOptionFactory::buildLiteralOptions() method. (envoyproxy#6724) Add test of parsing weighted_cluster route configuration to improve test coverage. (envoyproxy#6711) test: reducing H2 test permutations, increasing coverage time (envoyproxy#6753) Support gRPC-JSON translate without the google.api.http option. (envoyproxy#6731) quiche: implement QuicEpollClock (envoyproxy#6745) http: rc details for main Envoy workflow (envoyproxy#6560) quiche: implement QuicSystemEventLoopImpl (envoyproxy#6723) http: tracking 100s from upstream in stats (envoyproxy#6746) coverage: run without deprecated option (envoyproxy#6752) quiche: Implement spdy_test_helpers_impl. (envoyproxy#6741) [test] convert listener test stubs to v2 API (envoyproxy#6735) api: Add total_issued_requests to Upstream Locality and Endpoint Stats. (envoyproxy#6692) quiche: Implement http2_reconstruct_object_impl.h. (envoyproxy#6717) build: patch protobuf for UBSAN issue. (envoyproxy#6721) router: scoped rds (2a): scoped routing configuration protos (envoyproxy#6675) tap: use move semantics for submitTrace (envoyproxy#6709) quiche: add epoll_server for testing (envoyproxy#6650) Increase timeout of the coverage test run to 3000 seconds as it is now bumping in the current 2000s limit causing coverage run to abort sometimes. (envoyproxy#6722) quiche: Update tarball to commit 43a1c0f10f2855c3cd142f500e8d19ac6d6f5a8c (envoyproxy#6718) ... Signed-off-by: Michael Puncel <mpuncel@squareup.com>
Implement http2_reconstruct_object_impl.h, which provides simple test-only apis to re-construct c++ objects in place. Also added BUILD rule "http2_test_tools_random" since it's needed by http2_reconstruct_object_impl.h. Risk Level: none, code not used yet. Testing: bazel test --test_output=all test/extensions/quic_listeners/quiche/platform:all @com_googlesource_quiche//:all Docs Changes: none Release Notes: none Signed-off-by: Bin Wu <wub@google.com> Signed-off-by: Jeff Piazza <jeffpiazza@google.com>
Description:
Implement http2_reconstruct_object_impl.h, which provides simple test-only apis to re-construct c++ objects in place. Also added BUILD rule "http2_test_tools_random" since it's needed by http2_reconstruct_object_impl.h.
Risk Level: none, code not used yet.
Testing:
bazel test --test_output=all test/extensions/quic_listeners/quiche/platform:all @com_googlesource_quiche//:all
Docs Changes: none
Release Notes: none