Skip to content

time: make TimeSource virtual, and remove MonotonicTimeSource and ProdTimeSource#4261

Closed
jmarantz wants to merge 46 commits intoenvoyproxy:masterfrom
jmarantz:virtual-time-source
Closed

time: make TimeSource virtual, and remove MonotonicTimeSource and ProdTimeSource#4261
jmarantz wants to merge 46 commits intoenvoyproxy:masterfrom
jmarantz:virtual-time-source

Conversation

@jmarantz
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz commented Aug 26, 2018

Description: Unifies the TimeSource so that system and monotonic sources are always handled similarly (mocks, real-time, or in the future, simulated). This is another step in resolving #4160.
Risk Level: low
Testing: //test/...
Docs Changes: n/a
Release Notes: n/a

…(at least one with my own new assert).

Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
…rkerFactory::createWorker,

Signed-off-by: Joshua Marantz <[email protected]>
…nt an assert and made it not fire.

Signed-off-by: Joshua Marantz <[email protected]>
…eeds is a MonotonicTimeSource, so no need for the added test complexity.

Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
This reverts commit 5338985.

Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
…to use

'SimulatedTestTime' which hasn't been built yet.

Signed-off-by: Joshua Marantz <[email protected]>
…if they are not copyable.

Signed-off-by: Joshua Marantz <[email protected]>
…Source as distinct class hierarchies.

Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
Signed-off-by: Joshua Marantz <[email protected]>
@jmarantz jmarantz changed the title WIP: make TimeSource virtual, and remove MonotonicTimeSource and ProdTimeSource time: make TimeSource virtual, and remove MonotonicTimeSource and ProdTimeSource Aug 28, 2018
Signed-off-by: Joshua Marantz <[email protected]>
@jmarantz
Copy link
Copy Markdown
Contributor Author

I think maybe this intermediate state is not worth it, so closing for now, especially as no one has looked at this yet. Please review #4257 instead.

@jmarantz jmarantz closed this Aug 29, 2018
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.

1 participant