[devhost] Refactor to enable unit testing
This moves the ProxyIostate and ConnectionDestroyer types into their own files, and feeds them async dispatchers via injection rather than environmental globals. Change-Id: Ifeadbed02e92a7e2a7af5346ddd253af74112abf
Showing
- zircon/system/core/devmgr/devhost/BUILD.gn 34 additions, 8 deletionszircon/system/core/devmgr/devhost/BUILD.gn
- zircon/system/core/devmgr/devhost/connection-destroyer.cpp 54 additions, 0 deletionszircon/system/core/devmgr/devhost/connection-destroyer.cpp
- zircon/system/core/devmgr/devhost/connection-destroyer.h 50 additions, 0 deletionszircon/system/core/devmgr/devhost/connection-destroyer.h
- zircon/system/core/devmgr/devhost/core.cpp 16 additions, 3 deletionszircon/system/core/devmgr/devhost/core.cpp
- zircon/system/core/devmgr/devhost/devhost.cpp 6 additions, 174 deletionszircon/system/core/devmgr/devhost/devhost.cpp
- zircon/system/core/devmgr/devhost/devhost.h 1 addition, 0 deletionszircon/system/core/devmgr/devhost/devhost.h
- zircon/system/core/devmgr/devhost/proxy-iostate-test.cpp 28 additions, 0 deletionszircon/system/core/devmgr/devhost/proxy-iostate-test.cpp
- zircon/system/core/devmgr/devhost/proxy-iostate.cpp 95 additions, 0 deletionszircon/system/core/devmgr/devhost/proxy-iostate.cpp
- zircon/system/core/devmgr/devhost/proxy-iostate.h 38 additions, 0 deletionszircon/system/core/devmgr/devhost/proxy-iostate.h
- zircon/system/utest/BUILD.gn 1 addition, 0 deletionszircon/system/utest/BUILD.gn
Loading
Please register or sign in to comment