Index: content/browser/renderer_host/image_transport_factory_android.h |
diff --git a/content/browser/renderer_host/image_transport_factory_android.h b/content/browser/renderer_host/image_transport_factory_android.h |
index 3be7a678e69821cbf47ddbf72c1cd414feac33e6..256238114066602a06305f2780dfbad202aa3553 100644 |
--- a/content/browser/renderer_host/image_transport_factory_android.h |
+++ b/content/browser/renderer_host/image_transport_factory_android.h |
@@ -6,6 +6,7 @@ |
#define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ |
#include "base/memory/scoped_ptr.h" |
+#include "content/common/content_export.h" |
#include "ui/gfx/native_widget_types.h" |
namespace gfx { |
@@ -28,10 +29,16 @@ class ImageTransportFactoryAndroidObserver { |
virtual void OnLostResources() = 0; |
}; |
-class ImageTransportFactoryAndroid { |
+class CONTENT_EXPORT ImageTransportFactoryAndroid { |
public: |
virtual ~ImageTransportFactoryAndroid(); |
+ // Initializes the global transport factory for unit tests. |
+ static void InitializeForUnitTests( |
+ scoped_ptr<ImageTransportFactoryAndroid> test_factory); |
+ // Terminates the global transport factory for unit tests. |
+ static void TerminateForUnitTests(); |
+ |
static ImageTransportFactoryAndroid* GetInstance(); |
virtual GLHelper* GetGLHelper() = 0; |