Skip to content

test: cleaning up unneeded helpers. - #16334

Merged
yanavlasov merged 2 commits into
envoyproxy:mainfrom
alyssawilk:fake
May 6, 2021
Merged

yanavlasov merged 2 commits into
envoyproxy:mainfrom
alyssawilk:fake

Conversation

@alyssawilk

Copy link
Copy Markdown
Contributor

Risk Level: n/a (test only)
Testing: n/a
Docs Changes: n/a
Release Notes: n/a

@jmarantz jmarantz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great; just a typing/comment nit

uint32_t hds_requests_{};
FakeUpstreamPtr host_upstream_{};
FakeUpstreamPtr host2_upstream_{};
FakeUpstream* host_upstream_{};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add line comment on ownership

// Creates a fake upstream bound to INADDR_ANY and there is no specified port.
std::unique_ptr<FakeUpstream> createFakeUpstream(FakeHttpConnection::Type type) {
// Add a fake upstream bound to INADDR_ANY and there is no specified port.
std::unique_ptr<FakeUpstream>& addFakeUpstream(FakeHttpConnection::Type type) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe return FakeUpstream* or OptRef<FakeUpstream>

Signed-off-by: Alyssa Wilk <[email protected]>
@yanavlasov
yanavlasov merged commit 0cdd980 into envoyproxy:main May 6, 2021
@alyssawilk
alyssawilk deleted the fake branch August 18, 2021 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants