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

Unified Diff: content/browser/aura/image_transport_factory.h

Issue 45963003: Move test-only ContextFactory implementations out of production targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert bad ui/base changes Created 7 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: content/browser/aura/image_transport_factory.h
diff --git a/content/browser/aura/image_transport_factory.h b/content/browser/aura/image_transport_factory.h
index 7cd2523c421f11afb811a9af0515ba01da3fec70..bfe7057cce620b2f4fafe2b471203af63fcb2a3a 100644
--- a/content/browser/aura/image_transport_factory.h
+++ b/content/browser/aura/image_transport_factory.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
#include "ui/gfx/native_widget_types.h"
@@ -52,9 +53,10 @@ class CONTENT_EXPORT ImageTransportFactory {
// Initializes the global transport factory.
static void Initialize();
- // Initializes the global transport factory for unit tests, using a test
- // context.
- static void InitializeForUnitTests();
+ // Initializes the global transport factory for unit tests using the provided
+ // context factory.
+ static void InitializeForUnitTests(
+ scoped_ptr<ui::ContextFactory> test_factory);
// Terminates the global transport factory.
static void Terminate();

Powered by Google App Engine
This is Rietveld 408576698