Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: ui/compositor/layer_animator_unittest.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/compositor_unittest.cc ('k') | ui/compositor/layer_owner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animator_unittest.cc
diff --git a/ui/compositor/layer_animator_unittest.cc b/ui/compositor/layer_animator_unittest.cc
index 51f883b4fd9121f24957b18cbb672c8f36da3476..012eea4fe69a1de5cca1d3eeb472c39e85f4081b 100644
--- a/ui/compositor/layer_animator_unittest.cc
+++ b/ui/compositor/layer_animator_unittest.cc
@@ -2607,13 +2607,15 @@ TEST(LayerAnimatorTest, AnimatorRemovedFromCollectionWhenLayerIsDestroyed) {
TEST(LayerAnimatorTest, LayerMovedBetweenCompositorsDuringAnimation) {
bool enable_pixel_output = false;
- ui::ContextFactory* context_factory =
- InitializeContextFactoryForTests(enable_pixel_output);
+ ui::ContextFactory* context_factory = nullptr;
+ ui::ContextFactoryPrivate* context_factory_private = nullptr;
+ InitializeContextFactoryForTests(enable_pixel_output, &context_factory,
+ &context_factory_private);
const gfx::Rect bounds(10, 10, 100, 100);
- std::unique_ptr<TestCompositorHost> host_1(
- TestCompositorHost::Create(bounds, context_factory));
- std::unique_ptr<TestCompositorHost> host_2(
- TestCompositorHost::Create(bounds, context_factory));
+ std::unique_ptr<TestCompositorHost> host_1(TestCompositorHost::Create(
+ bounds, context_factory, context_factory_private));
+ std::unique_ptr<TestCompositorHost> host_2(TestCompositorHost::Create(
+ bounds, context_factory, context_factory_private));
host_1->Show();
host_2->Show();
@@ -2655,11 +2657,13 @@ TEST(LayerAnimatorTest, LayerMovedBetweenCompositorsDuringAnimation) {
TEST(LayerAnimatorTest, ThreadedAnimationSurvivesIfLayerRemovedAdded) {
bool enable_pixel_output = false;
- ui::ContextFactory* context_factory =
- InitializeContextFactoryForTests(enable_pixel_output);
+ ui::ContextFactory* context_factory = nullptr;
+ ui::ContextFactoryPrivate* context_factory_private = nullptr;
+ InitializeContextFactoryForTests(enable_pixel_output, &context_factory,
+ &context_factory_private);
const gfx::Rect bounds(10, 10, 100, 100);
- std::unique_ptr<TestCompositorHost> host(
- TestCompositorHost::Create(bounds, context_factory));
+ std::unique_ptr<TestCompositorHost> host(TestCompositorHost::Create(
+ bounds, context_factory, context_factory_private));
host->Show();
Compositor* compositor = host->GetCompositor();
« no previous file with comments | « ui/compositor/compositor_unittest.cc ('k') | ui/compositor/layer_owner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698