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

Unified Diff: ash/test/test_shell_delegate.cc

Issue 45963003: Move test-only ContextFactory implementations out of production targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: ash/test/test_shell_delegate.cc
diff --git a/ash/test/test_shell_delegate.cc b/ash/test/test_shell_delegate.cc
index d7c11bddf071a700e488acdf8e8e29898f24a206..f40efa3e159df7cdf8f72b8b90ca0a35fe5daf6c 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -22,7 +22,7 @@
#include "base/logging.h"
#include "content/public/test/test_browser_context.h"
#include "ui/aura/window.h"
-#include "ui/compositor/compositor.h"
+#include "ui/compositor/test/context_factories_for_test.h"
namespace ash {
namespace test {
@@ -34,6 +34,7 @@ TestShellDelegate::TestShellDelegate()
}
TestShellDelegate::~TestShellDelegate() {
+ ui::TerminateContextFactoryForTests();
}
bool TestShellDelegate::IsFirstRunAfterBoot() const {
@@ -149,7 +150,7 @@ ui::MenuModel* TestShellDelegate::CreateContextMenu(aura::RootWindow* root) {
RootWindowHostFactory* TestShellDelegate::CreateRootWindowHostFactory() {
// 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);
return RootWindowHostFactory::Create();
}
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc » ('j') | ui/compositor/compositor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698