#include "common/common/thread_impl.h" namespace Envoy { namespace Thread { // TODO(sesmith177) Tests should get the ThreadFactory from the same location as the main code ThreadFactory& threadFactoryForTest() { #ifdef WIN32 static auto* thread_factory = new ThreadFactoryImplWin32(); #else static auto* thread_factory = new ThreadFactoryImplPosix(); #endif return *thread_factory; } } // namespace Thread } // namespace Envoy