Index: content/test/content_test_suite.cc |
diff --git a/content/test/content_test_suite.cc b/content/test/content_test_suite.cc |
index 7a87809acbc1460f4ed0dd254b03d069c98ada04..ef67f6d4a88b181749115870ca223730a4a13e63 100644 |
--- a/content/test/content_test_suite.cc |
+++ b/content/test/content_test_suite.cc |
@@ -13,11 +13,15 @@ |
#include "content/test/test_content_client.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "ui/base/ui_base_paths.h" |
-#include "ui/gfx/test/gfx_test_utils.h" |
#if defined(OS_MACOSX) |
#include "base/mac/scoped_nsautorelease_pool.h" |
#endif |
+#if defined(USE_WEBKIT_COMPOSITOR) |
+#include "ui/gfx/compositor/compositor_setup.h" |
+#else |
+#include "ui/gfx/test/gfx_test_utils.h" |
+#endif |
namespace { |
@@ -75,7 +79,11 @@ void ContentTestSuite::Initialize() { |
ui::RegisterPathProvider(); |
// Mock out the compositor on platforms that use it. |
+#if defined(USE_WEBKIT_COMPOSITOR) |
+ ui::SetupTestCompositor(); |
+#else |
ui::gfx_test_utils::SetupTestCompositor(); |
+#endif |
testing::TestEventListeners& listeners = |
testing::UnitTest::GetInstance()->listeners(); |