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

Unified Diff: ui/aura/test/aura_test_helper.cc

Issue 45963003: Move test-only ContextFactory implementations out of production targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert bad ui/base changes Created 7 years, 2 months 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: 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 e5d0776a09ca5630b65c5e74db43aeef4f277cfe..4d2e6a26c4fe46aa05b571b23e6ddf808372cc3e 100644
--- a/ui/aura/test/aura_test_helper.cc
+++ b/ui/aura/test/aura_test_helper.cc
@@ -22,6 +22,7 @@
#include "ui/compositor/compositor.h"
#include "ui/compositor/layer_animator.h"
#include "ui/compositor/scoped_animation_duration_scale_mode.h"
+#include "ui/compositor/test/context_factories_for_test.h"
#include "ui/gfx/screen.h"
#if defined(USE_X11)
@@ -66,7 +67,7 @@ void AuraTestHelper::SetUp() {
// The ContextFactory must exist before any Compositors are created.
bool allow_test_contexts = true;
- ui::Compositor::InitializeContextFactoryForTests(allow_test_contexts);
+ ui::InitializeContextFactoryForTests(allow_test_contexts);
Env::CreateInstance();
// Unit tests generally don't want to query the system, rather use the state
@@ -115,6 +116,8 @@ void AuraTestHelper::TearDown() {
ui::ShutdownInputMethodForTesting();
Env::DeleteInstance();
+
+ ui::TerminateContextFactoryForTests();
}
void AuraTestHelper::RunAllPendingInMessageLoop() {
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/compositor/compositor.h » ('j') | ui/compositor/reflector.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698