Chromium Code Reviews
DescriptionCreate only one ContextFactory in content unit tests
ImageTransportFactory::InitializeForUnitTests gets called in the setup
of many tests. However, ui::InitializeContextFactoryForTests via
RenderViewHostTestHarness::SetUp was also being called indirectly in
many unit tests as well. This would result in two context factories,
one set on ui::aura::Env and the other being the ImageTransportFactory
instance.
Fix this problem by consolidating these two in content unittests.
This fix is in the service of fixing racy RenderWidgetHostViewChildFrame
tests that were using fake surface namespace ids that were never
registered. That bug is fixed by registering that id with the (single)
global SurfaceManager on the context factory.
BUG=616976
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/d31c7828f22b988a63718fd9dd8735c7220aba57
Cr-Commit-Position: refs/heads/master@{#400814}
Patch Set 1 #Patch Set 2 : Fix mac unit tests #Patch Set 3 : Fix android too #Patch Set 4 : Add CONTENT_EXPORT #
Total comments: 2
Patch Set 5 : Add dcheck #
Messages
Total messages: 14 (6 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||