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

Unified Diff: ui/compositor/layer_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/layer_owner_unittest.cc ('k') | ui/compositor/test/context_factories_for_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_unittest.cc
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc
index 75f29657e53620cc735248da11207cf9495fdbc8..7638b3a07ca86dba248119f896fdb4a123b854c0 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -168,12 +168,14 @@ class LayerWithRealCompositorTest : public testing::Test {
// Overridden from testing::Test:
void SetUp() override {
bool enable_pixel_output = true;
- 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 host_bounds(10, 10, 500, 500);
- compositor_host_.reset(
- TestCompositorHost::Create(host_bounds, context_factory));
+ compositor_host_.reset(TestCompositorHost::Create(
+ host_bounds, context_factory, context_factory_private));
compositor_host_->Show();
}
@@ -502,12 +504,15 @@ class LayerWithDelegateTest : public testing::Test {
// Overridden from testing::Test:
void SetUp() override {
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 host_bounds(1000, 1000);
- compositor_host_.reset(TestCompositorHost::Create(host_bounds,
- context_factory));
+ compositor_host_.reset(TestCompositorHost::Create(
+ host_bounds, context_factory, context_factory_private));
compositor_host_->Show();
}
« no previous file with comments | « ui/compositor/layer_owner_unittest.cc ('k') | ui/compositor/test/context_factories_for_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698