Index: chrome/test/base/chrome_test_suite.cc |
diff --git a/chrome/test/base/chrome_test_suite.cc b/chrome/test/base/chrome_test_suite.cc |
index fa02aa99ee185727bf3d304d00d2f64b66c6320d..aff741e6af1b2107ef45e47b1c3e26fe472902bf 100644 |
--- a/chrome/test/base/chrome_test_suite.cc |
+++ b/chrome/test/base/chrome_test_suite.cc |
@@ -27,10 +27,7 @@ |
#include "testing/gtest/include/gtest/gtest.h" |
#include "ui/base/resource/resource_bundle.h" |
#include "ui/base/ui_base_paths.h" |
- |
-#if defined(TOOLKIT_VIEWS) |
-#include "views/view.h" |
-#endif |
+#include "ui/gfx/test/gfx_test_utils.h" |
#if defined(OS_MACOSX) |
#include "base/mac/mac_util.h" |
@@ -196,10 +193,8 @@ void ChromeTestSuite::Initialize() { |
resources_pack_path.Append(FILE_PATH_LITERAL("resources.pak")); |
ResourceBundle::AddDataPackToSharedInstance(resources_pack_path); |
-#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) |
- // Turn of GPU compositing in browser during unit tests. |
- views::View::set_use_acceleration_when_possible(false); |
-#endif |
+ // Mock out the compositor on platforms that use it. |
+ ui::gfx_test_utils::SetupTestCompositor(); |
stats_filename_ = base::StringPrintf("unit_tests-%d", |
base::GetCurrentProcId()); |