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

Unified Diff: ui/compositor/test/context_factories_for_test.h

Issue 285373012: Temporarily adds another constructor to Compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweak Created 6 years, 7 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/compositor/layer_unittest.cc ('k') | ui/compositor/test/context_factories_for_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/context_factories_for_test.h
diff --git a/ui/compositor/test/context_factories_for_test.h b/ui/compositor/test/context_factories_for_test.h
index ae4e51e7bc2d03fd77f4d2aa5070653627f0a85e..e54d20639d24d6fc0a753569b5a42a432fafcbeb 100644
--- a/ui/compositor/test/context_factories_for_test.h
+++ b/ui/compositor/test/context_factories_for_test.h
@@ -4,13 +4,17 @@
namespace ui {
+class ContextFactory;
+
// Set up the compositor ContextFactory for a test environment. Unit tests
// that do not have a full content environment need to call this before
// initializing the Compositor.
// Some tests expect pixel output, and they should pass true for
// |enable_pixel_output|. Most unit tests should pass false. Once this has been
// called, the caller must call TerminateContextFactoryForTests() to clean up.
-void InitializeContextFactoryForTests(bool enable_pixel_output);
+// TODO(sky): this should return a scoped_ptr and then nuke
+// TerminateContextFactoryForTests().
+ui::ContextFactory* InitializeContextFactoryForTests(bool enable_pixel_output);
void TerminateContextFactoryForTests();
} // namespace ui
« no previous file with comments | « ui/compositor/layer_unittest.cc ('k') | ui/compositor/test/context_factories_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698