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

Unified Diff: mash/test/mash_test_suite.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Fix some Mac tests 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
Index: mash/test/mash_test_suite.cc
diff --git a/mash/test/mash_test_suite.cc b/mash/test/mash_test_suite.cc
index 15715683b4170ee52dcb5d3a391cb597abe6bf61..5d42365d15815067a4811f037af1452926b7dce1 100644
--- a/mash/test/mash_test_suite.cc
+++ b/mash/test/mash_test_suite.cc
@@ -32,8 +32,14 @@ void MashTestSuite::Initialize() {
env_ = aura::Env::CreateInstance(aura::Env::Mode::MUS);
gl::GLSurfaceTestSupport::InitializeOneOff();
const bool enable_pixel_output = false;
- env_->set_context_factory(
- ui::InitializeContextFactoryForTests(enable_pixel_output));
+
+ ui::ContextFactory* context_factory = nullptr;
+ ui::ContextFactoryPrivate* context_factory_private = nullptr;
+ ui::InitializeContextFactoryForTests(enable_pixel_output, &context_factory,
+ &context_factory_private);
+
+ env_->set_context_factory(context_factory);
+ env_->set_context_factory_private(context_factory_private);
rjkroege 2016/12/14 00:15:31 Why is this necessary? This is mash code. It's a c
Fady Samuel 2016/12/14 01:27:12 I don't think it's necessary. Removed.
Fady Samuel 2016/12/14 04:51:02 I don't understand what's going on... It seems li
}
void MashTestSuite::Shutdown() {

Powered by Google App Engine
This is Rietveld 408576698