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

Unified Diff: ui/views/test/views_test_helper_aura.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/views/test/views_test_helper_aura.h ('k') | ui/views/test/views_test_helper_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/views_test_helper_aura.cc
diff --git a/ui/views/test/views_test_helper_aura.cc b/ui/views/test/views_test_helper_aura.cc
index 1c8c99a821f090450c56423679ab8a8c74447651..f9fe6f1b125fc9759753a0183ecc4d51087a8a54 100644
--- a/ui/views/test/views_test_helper_aura.cc
+++ b/ui/views/test/views_test_helper_aura.cc
@@ -14,14 +14,20 @@
namespace views {
// static
-ViewsTestHelper* ViewsTestHelper::Create(base::MessageLoopForUI* message_loop,
- ui::ContextFactory* context_factory) {
- return new ViewsTestHelperAura(message_loop, context_factory);
+ViewsTestHelper* ViewsTestHelper::Create(
+ base::MessageLoopForUI* message_loop,
+ ui::ContextFactory* context_factory,
+ ui::ContextFactoryPrivate* context_factory_private) {
+ return new ViewsTestHelperAura(message_loop, context_factory,
+ context_factory_private);
}
-ViewsTestHelperAura::ViewsTestHelperAura(base::MessageLoopForUI* message_loop,
- ui::ContextFactory* context_factory)
- : context_factory_(context_factory) {
+ViewsTestHelperAura::ViewsTestHelperAura(
+ base::MessageLoopForUI* message_loop,
+ ui::ContextFactory* context_factory,
+ ui::ContextFactoryPrivate* context_factory_private)
+ : context_factory_(context_factory),
+ context_factory_private_(context_factory_private) {
aura_test_helper_.reset(new aura::test::AuraTestHelper(message_loop));
}
@@ -34,7 +40,7 @@ void ViewsTestHelperAura::EnableMusWithWindowTreeClient(
}
void ViewsTestHelperAura::SetUp() {
- aura_test_helper_->SetUp(context_factory_);
+ aura_test_helper_->SetUp(context_factory_, context_factory_private_);
// GetContext() may return null. See comment in GetContext().
gfx::NativeWindow root_window = GetContext();
« no previous file with comments | « ui/views/test/views_test_helper_aura.h ('k') | ui/views/test/views_test_helper_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698