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

Unified Diff: views/run_all_unittests.cc

Issue 8222028: Use WebKit compositor in ui::Layer (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase 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
« no previous file with comments | « ui/gfx/compositor/test_suite.cc ('k') | views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/run_all_unittests.cc
diff --git a/views/run_all_unittests.cc b/views/run_all_unittests.cc
index 90fd4dda1307d6c72bff14705c284856a692c29c..e9749ce371debdfc240b89a6d5e0bac554e5b0e4 100644
--- a/views/run_all_unittests.cc
+++ b/views/run_all_unittests.cc
@@ -5,6 +5,7 @@
#include "base/test/test_suite.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_paths.h"
+#include "ui/gfx/compositor/compositor_test_support.h"
#include "views/view.h"
class ViewTestSuite : public base::TestSuite {
@@ -22,6 +23,11 @@ class ViewTestSuite : public base::TestSuite {
// Disable GPU browser compositor during unit tests.
views::View::set_use_acceleration_when_possible(false);
#endif
+ ui::CompositorTestSupport::Initialize();
+ }
+
+ virtual void Shutdown() {
+ ui::CompositorTestSupport::Terminate();
}
};
« no previous file with comments | « ui/gfx/compositor/test_suite.cc ('k') | views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698