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

Unified Diff: ui/aura/test/aura_test_helper.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/aura/test/aura_test_helper.h ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/aura_test_helper.cc
diff --git a/ui/aura/test/aura_test_helper.cc b/ui/aura/test/aura_test_helper.cc
index 2fdddc08c29f94649685cdf5cfe27e38977888d9..a232d817d39f72ddb4bcf29b50d9deee3fc10ec6 100644
--- a/ui/aura/test/aura_test_helper.cc
+++ b/ui/aura/test/aura_test_helper.cc
@@ -76,7 +76,8 @@ void AuraTestHelper::EnableMusWithWindowTreeClient(
window_tree_client_ = window_tree_client;
}
-void AuraTestHelper::SetUp(ui::ContextFactory* context_factory) {
+void AuraTestHelper::SetUp(ui::ContextFactory* context_factory,
+ ui::ContextFactoryPrivate* context_factory_private) {
setup_called_ = true;
if (mode_ != Mode::MUS) {
@@ -100,6 +101,7 @@ void AuraTestHelper::SetUp(ui::ContextFactory* context_factory) {
env_helper.SetWindowTreeClient(window_tree_client_);
Env::GetInstance()->SetActiveFocusClient(focus_client_.get(), nullptr);
Env::GetInstance()->set_context_factory(context_factory);
+ Env::GetInstance()->set_context_factory_private(context_factory_private);
// Unit tests generally don't want to query the system, rather use the state
// from RootWindow.
env_helper.SetInputStateLookup(nullptr);
« no previous file with comments | « ui/aura/test/aura_test_helper.h ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698