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

Unified Diff: views/run_all_unittests.cc

Issue 8240006: Use a mocked compositor for unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ui/gfx/test/gfx_test_utils x4 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: 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();
}
};

Powered by Google App Engine
This is Rietveld 408576698