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

Unified Diff: ui/gfx/compositor/compositor_test_support.cc

Issue 8395043: Fix up compositor mocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Deeper down the rabbit hole. 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
« no previous file with comments | « ui/gfx/compositor/compositor_test_support.h ('k') | ui/gfx/test/gfx_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/compositor_test_support.cc
diff --git a/ui/gfx/compositor/compositor_test_support.cc b/ui/gfx/compositor/compositor_test_support.cc
index d9e88e2c5d5249fc52b08ae51e4ade3662877b60..e72bd0c8204bc5290b1077dbaab1144aa055e212 100644
--- a/ui/gfx/compositor/compositor_test_support.cc
+++ b/ui/gfx/compositor/compositor_test_support.cc
@@ -9,11 +9,6 @@
#include "webkit/glue/webkitplatformsupport_impl.h"
#endif
-#if defined(VIEWS_COMPOSITOR)
-#include "ui/gfx/compositor/compositor.h"
-#include "ui/gfx/compositor/test_compositor.h"
-#endif
-
namespace ui {
#if defined(USE_WEBKIT_COMPOSITOR)
@@ -37,19 +32,4 @@ void CompositorTestSupport::Terminate() {
#endif
}
-void CompositorTestSupport::SetupMockCompositor() {
-#if defined(USE_WEBKIT_COMPOSITOR)
- // TODO(backer): We've got dependencies in Layer that require
- // WebKit support even though we're mocking the Compositor. We
- // would ideally mock out these unnecessary dependencies as well.
- DCHECK(g_webkit_support);
-#endif
-
-#if defined(VIEWS_COMPOSITOR)
- // Use a mock compositor that noops draws.
- ui::Compositor::set_compositor_factory_for_testing(
- ui::TestCompositor::Create);
-#endif
-}
-
} // namespace ui
« no previous file with comments | « ui/gfx/compositor/compositor_test_support.h ('k') | ui/gfx/test/gfx_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698