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

Unified Diff: trunk/src/components/test/run_all_unittests.cc

Issue 22648006: Revert 216780 "Clean up compositor initialization/destruction." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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 | « trunk/src/chrome/test/ui/ui_test.cc ('k') | trunk/src/content/browser/aura/gpu_process_transport_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/components/test/run_all_unittests.cc
===================================================================
--- trunk/src/components/test/run_all_unittests.cc (revision 216906)
+++ trunk/src/components/test/run_all_unittests.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/test/test_suite.h"
#include "content/public/test/test_content_client_initializer.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/compositor/compositor_setup.h"
namespace components {
@@ -33,6 +34,9 @@
int main(int argc, char** argv) {
base::TestSuite test_suite(argc, argv);
+ // Mock out the compositor on platforms that use it.
+ ui::SetupTestCompositor();
+
// The listener will set up common test environment for all components unit
// tests.
testing::TestEventListeners& listeners =
« no previous file with comments | « trunk/src/chrome/test/ui/ui_test.cc ('k') | trunk/src/content/browser/aura/gpu_process_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698