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

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

Issue 8240006: Use a mocked compositor for unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 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_base.cc
diff --git a/ui/aura/test/aura_test_base.cc b/ui/aura/test/aura_test_base.cc
index c2cff1103466a78adbceefd50f2a52ccecdd2e93..61ffed4e31cdf5a97474a12f6af327afd788f8d0 100644
--- a/ui/aura/test/aura_test_base.cc
+++ b/ui/aura/test/aura_test_base.cc
@@ -10,15 +10,10 @@
#include "ui/aura/desktop.h"
#include "ui/aura/test/test_desktop_delegate.h"
-#include "ui/gfx/compositor/test_compositor.h"
namespace aura {
namespace test {
-static ui::Compositor* TestCreateCompositor() {
- return new ui::TestCompositor();
-}
-
AuraTestBase::AuraTestBase()
: setup_called_(false),
teardown_called_(false) {
@@ -26,7 +21,6 @@ AuraTestBase::AuraTestBase()
OleInitialize(NULL);
#endif
- aura::Desktop::set_compositor_factory_for_testing(&TestCreateCompositor);
// TestDesktopDelegate is owned by the desktop.
new TestDesktopDelegate();
Desktop::GetInstance()->Show();
@@ -50,7 +44,6 @@ AuraTestBase::~AuraTestBase() {
// Ensure that we don't use the previously-allocated static Desktop object
// later -- on Linux, it holds a reference to our message loop's X connection.
aura::Desktop::DeleteInstanceForTesting();
- aura::Desktop::set_compositor_factory_for_testing(NULL);
}
void AuraTestBase::SetUp() {

Powered by Google App Engine
This is Rietveld 408576698