Removing junit.framework.Assert

Bug: 22124692
Change-Id: Ie9c920ec6ef9631392a70b9ab2a5659ba23385b3
This commit is contained in:
Sunny Goyal
2015-06-26 14:00:57 -07:00
parent 1a8a6e0baa
commit 11d4911732
+3 -4
View File
@@ -56,8 +56,6 @@ import android.util.TypedValue;
import android.view.View;
import android.widget.Toast;
import junit.framework.Assert;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.ArrayList;
@@ -665,8 +663,9 @@ public final class Utilities {
}
public static void assertWorkerThread() {
if (LauncherAppState.isDogfoodBuild()) {
Assert.assertTrue(LauncherModel.sWorkerThread.getThreadId() == Process.myTid());
if (LauncherAppState.isDogfoodBuild() &&
(LauncherModel.sWorkerThread.getThreadId() != Process.myTid())) {
throw new IllegalStateException();
}
}