| Index: views/run_all_unittests.cc
|
| diff --git a/views/run_all_unittests.cc b/views/run_all_unittests.cc
|
| index 90fd4dda1307d6c72bff14705c284856a692c29c..27b3d0ff8cd76ff588c18e34d2e7f7507b904e23 100644
|
| --- a/views/run_all_unittests.cc
|
| +++ b/views/run_all_unittests.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "base/test/test_suite.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| #include "ui/base/ui_base_paths.h"
|
| #include "views/view.h"
|
| @@ -18,10 +19,8 @@ class ViewTestSuite : public base::TestSuite {
|
| ui::RegisterPathProvider();
|
| ui::ResourceBundle::InitSharedInstance("en-US");
|
|
|
| -#if defined(OS_LINUX)
|
| - // Disable GPU browser compositor 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();
|
| }
|
| };
|
|
|
|
|