Skip to content

AlternateProtocolsCache: Add Mocks#16677

Merged
alyssawilk merged 1 commit intoenvoyproxy:mainfrom
RyanTheOptimist:AlternateProtocolCacheMocks
Jun 1, 2021
Merged

AlternateProtocolsCache: Add Mocks#16677
alyssawilk merged 1 commit intoenvoyproxy:mainfrom
RyanTheOptimist:AlternateProtocolCacheMocks

Conversation

@RyanTheOptimist
Copy link
Copy Markdown
Contributor

Add mocks of the various AlternateProtocolsCache classes.

Risk Level: Low
Testing: Test-only code
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Ryan Hamilton <rch@google.com>
@RyanTheOptimist
Copy link
Copy Markdown
Contributor Author

/assign @DavidSchinazi

namespace Envoy {
namespace Http {

MockAlternateProtocolsCache::~MockAlternateProtocolsCache() = default;
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.

At this point I'd just define all this in the header file, but up to you. I don't know what the rest of Envoy does in this scenario.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I share your intuition. I followed the pattern for the other files in test/mock/http and put the = default in the .cc file.

@RyanTheOptimist
Copy link
Copy Markdown
Contributor Author

/assign @alyssawilk

Copy link
Copy Markdown
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

Generally I'd suggest landing this where they're used, but all LGTM and I'll review it either way =P

@alyssawilk alyssawilk merged commit 67dd989 into envoyproxy:main Jun 1, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Add mocks of the various AlternateProtocolsCache classes.

Risk Level: Low
Testing: Test-only code
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Ryan Hamilton <rch@google.com>
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