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

Unified Diff: ui/gfx/compositor/compositor_test_support.h

Issue 8240006: Use a mocked compositor for unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 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: ui/gfx/compositor/compositor_test_support.h
diff --git a/ui/gfx/compositor/compositor_test_support.h b/ui/gfx/compositor/compositor_test_support.h
index de520a07121816c87d6a8ff278beb307a1cbc53a..cd7ea2e2b36144b189a3e625075b170609cb27a4 100644
--- a/ui/gfx/compositor/compositor_test_support.h
+++ b/ui/gfx/compositor/compositor_test_support.h
@@ -10,8 +10,13 @@ namespace ui {
class CompositorTestSupport {
public:
+ // Called by programs that want to use a real compositor,
+ // but skip the typical initialization of browser_main.cc.
static void Initialize();
static void Terminate();
+
+ // Called by tests that want to use a mocked compositor.
+ static void SetupMockCompositor();
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698