Install dummy ServiceManagerConnection in unit test contexts? |
||||
Issue description
In unittests the service manager connection is not initialized, leading to code like:
if (ServiceManagerConnection::GetForProcess()) {
...
}
dcheng@ reasonably asks:
Out of curiosity, is there any chance to add some thing like
TestBrowserThreadBundle so that it would Just Work in tests?
(I ask this because I've been surprised by the RenderThreadImpl::current() is
null in tests behavior in the past; it just so happened that the 'null in tests'
check written into non-test code ended up masking other issues)
,
Nov 8 2017
Bulk applying component Internals>Services>ServiceManager to issues referencing the text ServiceManager. This may not be 100% accurate, so please feel free to pull the component as needed.
,
Oct 15
Kind of old now, but I will tag it with the do-something-about-this-soon label since it's relevant to cleaning up SM integration. In general, I would like to see us kill off ServiceManagerConnection::GetForProcess() altogether.
,
Oct 17
|
||||
►
Sign in to add a comment |
||||
Comment 1 by roc...@chromium.org
, Mar 22 2017