aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Judd <judds@google.com>2014-11-01 15:47:04 -0700
committerSam Judd <judds@google.com>2014-11-02 14:14:45 -0800
commita2f7668dd81e9aa6516882ba3c211cb64f75a610 (patch)
treee4237a9bc208af2db523e1e00703e257c701b0ef
parenta48a2d28b95cfeace83d4f295ce6928bb3844341 (diff)
downloadglide-a2f7668dd81e9aa6516882ba3c211cb64f75a610.tar.gz
Move TestUtil in gif decoder into test package.
-rw-r--r--third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/GifDecoderTest.java3
-rw-r--r--third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/GifHeaderParserTest.java1
-rw-r--r--third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/test/TestUtil.java (renamed from third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/TestUtil.java)7
3 files changed, 8 insertions, 3 deletions
diff --git a/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/GifDecoderTest.java b/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/GifDecoderTest.java
index 097462c5..ac5a4fbc 100644
--- a/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/GifDecoderTest.java
+++ b/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/GifDecoderTest.java
@@ -1,6 +1,7 @@
package com.bumptech.glide.gifdecoder;
import android.graphics.Bitmap;
+import com.bumptech.glide.gifdecoder.test.TestUtil;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -15,7 +16,7 @@ import static org.junit.Assert.assertNotNull;
* Tests for {@link com.bumptech.glide.gifdecoder.GifDecoder}.
*/
@RunWith(RobolectricTestRunner.class)
-@Config(emulateSdk = 18)
+@Config(manifest = Config.NONE, emulateSdk = 18)
public class GifDecoderTest {
private MockProvider provider;
diff --git a/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/GifHeaderParserTest.java b/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/GifHeaderParserTest.java
index 654b8cef..a24216e0 100644
--- a/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/GifHeaderParserTest.java
+++ b/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/GifHeaderParserTest.java
@@ -1,6 +1,7 @@
package com.bumptech.glide.gifdecoder;
import com.bumptech.glide.gifdecoder.test.GifBytesTestUtil;
+import com.bumptech.glide.gifdecoder.test.TestUtil;
import org.junit.Before;
import org.junit.Test;
diff --git a/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/TestUtil.java b/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/test/TestUtil.java
index ddacb68c..3198e8be 100644
--- a/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/TestUtil.java
+++ b/third_party/gif_decoder/src/androidTest/java/com/bumptech/glide/gifdecoder/test/TestUtil.java
@@ -1,10 +1,13 @@
-package com.bumptech.glide.gifdecoder;
+package com.bumptech.glide.gifdecoder.test;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
-final class TestUtil {
+/**
+ * Utility methods for GifDecoder tests.
+ */
+public final class TestUtil {
private TestUtil() {
// Utility class.