HomeSort by relevance Sort by last modified time
    Searched defs:Assert (Results 26 - 50 of 135) sorted by null

12 3 4 5 6

  /development/tools/mkstubs/tests/com/android/mkstubs/sourcer/
SignatureSourcerTest.java 21 import org.junit.Assert;
51 Assert.assertEquals(
63 Assert.assertEquals(
75 Assert.assertNotNull(params);
79 Assert.assertArrayEquals(
89 Assert.assertTrue(mSourcer.hasFormalsContent());
92 Assert.assertEquals(
102 Assert.assertTrue(mSourcer.hasFormalsContent());
105 Assert.assertEquals(
116 Assert.assertTrue(mSourcer.hasFormalsContent())
    [all...]
  /external/chromium/third_party/libjingle/source/talk/base/
common.h 84 inline bool Assert(bool result, const char * function, const char * file,
100 #ifndef ASSERT
101 #define ASSERT(x) (void)talk_base::Assert((x),__FUNCTION__,__FILE__,__LINE__,#x)
105 #define VERIFY(x) talk_base::Assert((x),__FUNCTION__,__FILE__,__LINE__,#x)
116 #ifndef ASSERT
117 #define ASSERT(x) (void)0
  /external/chromium_org/third_party/libjingle/source/talk/base/
common.h 86 // and allow applications to override the assert behavior.
91 // Assert (and from the ASSERT macro in debug mode) before any other action
101 // Sets a custom assert logger to be used instead of the default LogAssert
102 // behavior. To clear the custom assert logger, pass NULL for |logger| and the
103 // default behavior will be restored. Only one custom assert logger can be set
119 inline bool Assert(bool result, const char* function, const char* file,
135 #ifndef ASSERT
136 #define ASSERT(x) \
137 (void)talk_base::Assert((x), __FUNCTION__, __FILE__, __LINE__, #x
    [all...]
  /external/junit/src/org/junit/rules/
ExpectedException.java 9 import org.junit.Assert;
114 Assert.assertThat(e, fMatcher);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
SmsManagerTest.java 3 import junit.framework.Assert;
40 Assert.assertNotNull(shadowSmsManager);
50 Assert.assertEquals(testDestinationAddress, lastParams.getDestinationAddress());
51 Assert.assertEquals(testScAddress, lastParams.getScAddress());
52 Assert.assertEquals(testText, lastParams.getText());
59 Assert.assertNull(shadowSmsManager.getLastSentTextMessageParams());
BundleTest.java 9 import org.junit.Assert;
16 import static org.junit.Assert.*;
259 Assert.assertArrayEquals(new String[] { "a" }, bundle.getStringArray("foo"));
269 Assert.assertEquals(list, bundle.getStringArrayList("foo"));
279 Assert.assertEquals(list, bundle.getIntegerArrayList("foo"));
307 Assert.assertArrayEquals(arr, bundle.getByteArray("foo"));
316 Assert.assertArrayEquals(arr, bundle.getCharArray("foo"));
334 Assert.assertArrayEquals(arr, bundle.getIntArray("foo"));
343 Assert.assertArrayEquals(arr, bundle.getLongArray("foo"));
352 Assert.assertArrayEquals(arr, bundle.getShortArray("foo"))
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
OldAndroidByteArrayInputStreamTest.java 22 import junit.framework.Assert;
38 Assert.assertEquals(str, read(a));
39 Assert.assertEquals("AbCdEfGhIj", read(b, 10));
40 Assert.assertEquals("bdfhjlnprtvxz", skipRead(c));
41 Assert.assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", markRead(d, 3, 4));
OldAndroidCharArrayReaderTest.java 22 import junit.framework.Assert;
37 Assert.assertEquals(str, read(a));
38 Assert.assertEquals("AbCdEfGhIj", read(b, 10));
39 Assert.assertEquals("bdfhjlnprtvxz", skipRead(c));
40 Assert.assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", markRead(d, 3, 4));
OldAndroidStringReaderTest.java 22 import junit.framework.Assert;
35 Assert.assertEquals(str, read(a));
36 Assert.assertEquals("AbCdEfGhIj", read(b, 10));
37 Assert.assertEquals("bdfhjlnprtvxz", skipRead(c));
38 Assert.assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", markRead(d, 3, 4));
OldAndroidBufferedInputStreamTest.java 23 import junit.framework.Assert;
41 Assert.assertEquals(str, read(a));
48 Assert.assertEquals("AbCdEfGhIj", read(b, 10));
OldStreamTokenizerTest.java 24 import junit.framework.Assert;
58 Assert.assertTrue(a.lineno() == 1);
59 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD);
60 Assert.assertTrue(a.toString().equals("Token[Testing], line 1"));
61 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_NUMBER);
62 Assert.assertTrue(a.toString().equals("Token[n=12345.0], line 1"));
63 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD);
64 Assert.assertTrue(a.toString().equals("Token[alpha], line 2"));
65 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD);
66 Assert.assertTrue(a.toString().equals("Token[omega], line 3"))
    [all...]
  /cts/tests/tests/graphics2/src/android/graphics2/cts/
TextureViewCameraActivity.java 34 import junit.framework.Assert;
51 Assert.assertTrue(mTextureView.getLayerType() == View.LAYER_TYPE_HARDWARE);
52 Assert.assertTrue(mTextureView.isAvailable());
53 Assert.assertNotNull(mTextureView.getSurfaceTexture());
54 Assert.assertTrue(mTextureView.getSurfaceTextureListener() == this);
55 Assert.assertTrue(mTextureView.isOpaque());
77 Assert.fail();
96 Assert.assertEquals(mHeight, bitmap.getHeight());
97 Assert.assertEquals(mWidth, bitmap.getWidth());
  /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/reflect/
ReflectionUtils.java 15 import org.eclipse.wb.internal.core.utils.check.Assert;
55 Assert.isNotNull(type);
162 Assert.isNotNull(method);
179 Assert.isNotNull(name);
180 Assert.isNotNull(parameterTypes);
203 Assert.isNotNull(clazz);
204 Assert.isNotNull(signature);
220 Assert.isNotNull(object);
221 Assert.isNotNull(arguments);
227 Assert.isNotNull(method, "Can not find method " + signature + " in " + refClass)
    [all...]
  /external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
BaseTest.java 43 import org.junit.Assert;
888 public void assertEquals(String msg, Object a, Object b) { try {Assert.assertEquals(msg,a,b);} catch (Error e) {lastTestFailed=true; throw e;} }
889 public void assertEquals(Object a, Object b) { try {Assert.assertEquals(a,b);} catch (Error e) {lastTestFailed=true; throw e;} }
890 public void assertEquals(String msg, long a, long b) { try {Assert.assertEquals(msg,a,b);} catch (Error e) {lastTestFailed=true; throw e;} }
891 public void assertEquals(long a, long b) { try {Assert.assertEquals(a,b);} catch (Error e) {lastTestFailed=true; throw e;} }
893 public void assertTrue(String msg, boolean b) { try {Assert.assertTrue(msg,b);} catch (Error e) {lastTestFailed=true; throw e;} }
894 public void assertTrue(boolean b) { try {Assert.assertTrue(b);} catch (Error e) {lastTestFailed=true; throw e;} }
896 public void assertFalse(String msg, boolean b) { try {Assert.assertFalse(msg,b);} catch (Error e) {lastTestFailed=true; throw e;} }
897 public void assertFalse(boolean b) { try {Assert.assertFalse(b);} catch (Error e) {lastTestFailed=true; throw e;} }
899 public void assertNotNull(String msg, Object p) { try {Assert.assertNotNull(msg, p);} catch (Error e) {lastTestFailed=true; throw e;}
    [all...]
  /cts/tests/tests/textureview/src/android/textureview/cts/
TextureViewTestActivity.java 26 import junit.framework.Assert;
41 Assert.assertTrue(mFrames > 0);
42 Assert.assertTrue(mDelayMs > 0);
61 Assert.fail();
GLProducerThread.java 25 import junit.framework.Assert;
152 Assert.assertEquals(EGL10.EGL_SUCCESS, mEgl.eglGetError());
  /development/tools/emulator/test-apps/GpsLocationTest/src/com/android/emulator/gps/test/
GpsLocationTest.java 26 import junit.framework.Assert;
67 Assert.fail();
  /external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/
inttree.c 19 static void Assert(int assertion, const char *error)
154 Assert(!it->nil->red,"nil not red in ITLeftRotate");
155 Assert((it->nil->maxHigh=LONG_MIN),
218 Assert(!it->nil->red,"nil not red in ITRightRotate");
219 Assert((it->nil->maxHigh=LONG_MIN),
263 Assert(!it->nil->red,"nil not red in ITTreeInsertHelp");
264 Assert((it->nil->maxHigh=INT_MIN),
366 Assert(!it->nil->red,"nil not red in ITTreeInsert");
367 Assert(!it->root->red,"root not red in ITTreeInsert");
368 Assert((it->nil->maxHigh=LONG_MIN)
    [all...]
  /external/junit/src/org/junit/
Assert.java 13 * <code>Assert.assertEquals(...)</code>, however, they read better if they
17 * import static org.junit.Assert.*;
24 public class Assert {
28 protected Assert() {
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/bytecode/
ClassCacheTest.java 3 import org.junit.Assert;
40 Assert.assertEquals(false, attempt.ready);
41 Assert.assertEquals(1, (after - before) / timeToWait);
79 Assert.assertEquals(false, attempt.ready);
80 Assert.assertEquals(1, (after - before) / timeToWait);
  /external/smali/util/src/test/java/org/jf/util/
PathUtilTest.java 47 Assert.assertEquals(path, relativePath.getPath());
63 Assert.assertEquals(path, ".");
75 Assert.assertEquals(path, ".");
87 Assert.assertEquals(path, ".");
99 Assert.assertEquals(path, ".");
111 Assert.assertEquals(path, ".");
123 Assert.assertEquals(path, "dir");
135 Assert.assertEquals(path, "dir");
147 Assert.assertEquals(path, "dir");
159 Assert.assertEquals(path, "dir")
    [all...]
  /external/zlib/src/
zutil.h 223 # define Assert(cond,msg) {if(!(cond)) z_error(msg);}
230 # define Assert(cond,msg)
  /packages/apps/Email/tests/src/com/android/email/activity/
MailboxFragmentAdapterTest.java 30 import junit.framework.Assert;
117 Assert.assertTrue(cursor.getLong(cursor.getColumnIndex("_id")) >= 0);
118 Assert.assertEquals(id, MailboxFragmentAdapter.getId(cursor));
119 Assert.assertEquals(type, MailboxFragmentAdapter.getType(cursor));
120 Assert.assertEquals(count, MailboxFragmentAdapter.getMessageCount(cursor));
121 Assert.assertEquals(count, MailboxFragmentAdapter.getUnreadCount(cursor));
122 Assert.assertEquals(Account.ACCOUNT_ID_COMBINED_VIEW,
UIControllerTwoPaneRefreshTaskTest.java 29 import junit.framework.Assert;
168 Assert.assertEquals(mExpectedAccountId, accountId);
174 Assert.assertEquals(mExpectedAccountId, accountId);
180 Assert.assertEquals(mExpectedMailboxId, mailboxId);
186 Assert.assertEquals(mExpectedMailboxId, mailboxId);
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
TestUtils.java 24 import junit.framework.Assert;
36 Assert.assertTrue((namesAndValues.length % 2) == 0);
51 Assert.fail("Unsupported type: " + value.getClass().getSimpleName());

Completed in 707 milliseconds

12 3 4 5 6