OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Assert
(Results
276 - 300
of
824
) sorted by null
<<
11
12
13
14
15
16
17
18
19
20
>>
/external/smali/util/src/test/java/org/jf/util/
LinearSearchTest.java
36
import junit.framework.
Assert
;
99
Assert
.assertEquals(expectedIndex, LinearSearch.linearSearch(list, Ordering.<Integer>natural(), key, guess));
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
PopupWindowTest.java
20
import static junit.framework.
Assert
.assertEquals;
21
import static junit.framework.
Assert
.assertNotNull;
22
import static junit.framework.
Assert
.assertSame;
24
import static org.junit.
Assert
.assertFalse;
25
import static org.junit.
Assert
.*;
26
import static org.junit.
Assert
.assertTrue;
LogTest.java
5
import junit.framework.
Assert
;
12
import static junit.framework.
Assert
.assertEquals;
14
import static org.junit.
Assert
.assertFalse;
15
import static org.junit.
Assert
.assertThat;
16
import static org.junit.
Assert
.assertTrue;
111
assertLogged(Log.
ASSERT
, "tag", "msg", null);
120
assertLogged(Log.
ASSERT
, "tag", "msg", throwable);
149
assertTrue(Log.isLoggable("FOO", Log.
ASSERT
));
162
assertTrue(Log.isLoggable("FOO", Log.
ASSERT
));
WifiManagerTest.java
20
import static junit.framework.
Assert
.assertTrue;
24
import static org.junit.
Assert
.assertEquals;
25
import static org.junit.
Assert
.assertFalse;
26
import static org.junit.
Assert
.assertNotNull;
27
import static org.junit.
Assert
.assertThat;
ImageViewTest.java
23
import static org.junit.
Assert
.assertEquals;
24
import static org.junit.
Assert
.assertFalse;
25
import static org.junit.
Assert
.assertTrue;
LocationTest.java
10
import static junit.framework.
Assert
.assertEquals;
11
import static junit.framework.
Assert
.assertTrue;
12
import static junit.framework.
Assert
.assertFalse;
TextViewTest.java
17
import junit.framework.
Assert
;
29
import static junit.framework.
Assert
.assertFalse;
31
import static org.junit.
Assert
.*;
319
Assert
.assertEquals(6, shadowOf(textView.getCompoundDrawables()[0]).getLoadedFromResourceId());
320
Assert
.assertEquals(7, shadowOf(textView.getCompoundDrawables()[1]).getLoadedFromResourceId());
321
Assert
.assertEquals(8, shadowOf(textView.getCompoundDrawables()[2]).getLoadedFromResourceId());
322
Assert
.assertEquals(9, shadowOf(textView.getCompoundDrawables()[3]).getLoadedFromResourceId());
329
Assert
.assertNull(textView.getCompoundDrawables()[0]);
330
Assert
.assertNull(textView.getCompoundDrawables()[1]);
331
Assert
.assertNull(textView.getCompoundDrawables()[2])
[
all
...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
UsimDataDownloadCommands.java
30
import junit.framework.
Assert
;
60
Assert
.assertFalse("expectAcknowledgeGsmSms called twice", mExpectingAcknowledgeGsmSms);
72
Assert
.assertFalse("expectAcknowledgeGsmSms called twice", mExpectingAcknowledgeGsmSms);
86
Assert
.assertFalse("expectSendEnvelope called twice", mExpectingSendEnvelope);
102
Assert
.assertFalse("expecting SMS acknowledge call", mExpectingAcknowledgeGsmSms);
103
Assert
.assertFalse("expecting send envelope call", mExpectingSendEnvelope);
110
Assert
.assertTrue("unexpected call to acknowledge SMS", mExpectingAcknowledgeGsmSms);
111
Assert
.assertEquals(mExpectingAcknowledgeGsmSmsSuccess, success);
112
Assert
.assertEquals(mExpectingAcknowledgeGsmSmsFailureCause, cause);
126
Assert
.assertTrue("unexpected call to acknowledge SMS", mExpectingAcknowledgeGsmSms)
[
all
...]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
ResponseCacheAdapterTest.java
45
import static org.junit.
Assert
.assertArrayEquals;
46
import static org.junit.
Assert
.assertEquals;
47
import static org.junit.
Assert
.assertFalse;
48
import static org.junit.
Assert
.assertNotNull;
49
import static org.junit.
Assert
.assertNull;
50
import static org.junit.
Assert
.assertTrue;
51
import static org.junit.
Assert
.fail;
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/sync/
SyncTestUtil.java
14
import junit.framework.
Assert
;
124
Assert
.assertTrue("Expected sync to be disabled.",
160
Assert
.fail("Interrupted while polling sync internals info.");
206
Assert
.assertTrue("Timed out waiting for syncing to complete.",
231
Assert
.assertTrue(s.tryAcquire(SYNC_WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS));
239
Assert
.assertTrue("Timed out waiting for syncing to be initialized.",
272
Assert
.assertEquals(
283
Assert
.assertTrue(SYNC_URL + " is a required parameter for the sync tests.", hasSwitch);
341
Assert
.assertTrue(
/frameworks/base/test-runner/src/android/test/
MoreAsserts.java
19
import junit.framework.
Assert
;
53
Assert
.assertTrue(
350
Assert
.assertEquals(message, Arrays.asList(expected), actualList);
476
Assert
.assertTrue(
483
Assert
.assertFalse(
489
Assert
.assertEquals(message, expectedResult, lhs.equals(rhs));
492
Assert
.assertEquals(message, expectedResult, rhs.equals(lhs));
501
Assert
.assertTrue(hashMessage, lhs.hashCode() == rhs.hashCode());
573
Assert
.fail((userMessage == null)
/cts/tools/signature-tools/test/signature/converter/
ConvertEnumTest.java
19
import static org.junit.
Assert
.assertEquals;
20
import static org.junit.
Assert
.assertNotNull;
21
import static org.junit.
Assert
.assertSame;
22
import static org.junit.
Assert
.assertTrue;
23
import static org.junit.
Assert
.assertFalse;
/external/okhttp/okio/src/test/java/okio/
ByteStringTest.java
24
import static org.junit.
Assert
.assertEquals;
25
import static org.junit.
Assert
.assertFalse;
26
import static org.junit.
Assert
.assertSame;
27
import static org.junit.
Assert
.assertTrue;
28
import static org.junit.
Assert
.fail;
/packages/apps/Settings/tests/src/com/android/settings/vpn2/
CertInstallerHelper.java
30
import junit.framework.
Assert
;
94
Assert
.fail("key store failed to put in keychain");
99
Assert
.assertEquals(1, aliasesList.size());
105
Assert
.assertTrue(installFrom((PrivateKeyEntry) entry));
108
Assert
.fail("Failed to read certficate: " + e);
/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/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
logtesting.py
70
"""
Assert
that the given messages match the logged messages.
164
"""
Assert
there are no remaining log messages, and reset logging.
181
# deliberately doesn't want to
assert
every message.
194
"""
Assert
the current array of log messages, and clear its contents.
246
# deliberately doesn't want to
assert
every message.
252
"""
Assert
the current array of log messages, and clear its contents.
/external/chromium_org/third_party/libjingle/source/talk/base/
common.h
92
// and allow applications to override the
assert
behavior.
102
//
Assert
(and from the
ASSERT
macro in debug mode) before any other action
112
// Sets a custom
assert
logger to be used instead of the default LogAssert
113
// behavior. To clear the custom
assert
logger, pass NULL for |logger| and the
114
// default behavior will be restored. Only one custom
assert
logger can be set
129
inline bool
Assert
(bool result, const char* function, const char* file,
145
#ifndef
ASSERT
146
#define
ASSERT
(x) \
147
(void)talk_base::
Assert
((x), __FUNCTION__, __FILE__, __LINE__, #x
[
all
...]
/frameworks/base/tests/CoreTests/android/core/
SocketTest.java
19
import junit.framework.
Assert
;
275
Assert
.assertNull("Connect must not fail immediately. Maybe try different address.", error);
276
Assert
.assertFalse("Connect must not succeed. Maybe try different address.", connected);
/packages/apps/Contacts/src/com/android/contacts/interactions/
TestLoaderManager.java
28
import junit.framework.
Assert
;
141
Assert
.fail("Loader does not exist: " + loaderId);
167
Assert
.fail("Exception while waiting for loader: " + loader.getId());
/frameworks/base/core/java/android/net/http/
RequestHandle.java
21
import junit.framework.
Assert
;
276
Assert
.assertNotNull(username);
277
Assert
.assertNotNull(password);
304
Assert
.assertNotNull(username);
305
Assert
.assertNotNull(password);
306
Assert
.assertNotNull(realm);
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
MockContentProvider.java
29
import junit.framework.
Assert
;
264
Assert
.fail("Unexpected query: "
272
Assert
.fail("Incorrect query.\n Expected: " + sb + "\n Actual: " +
286
Assert
.fail("Unexpected getType query: " + uri);
294
Assert
.fail("Unknown mime type for: " + uri);
338
Assert
.assertTrue("Not all expected queries have been called: " +
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
EventGapVerification.java
3
import junit.framework.
Assert
;
25
// Number of indices to print in
assert
message before truncating
94
Assert
.fail(sb.toString());
EventOrderingVerification.java
19
import junit.framework.
Assert
;
35
// Number of indices to print in
assert
message before truncating
100
Assert
.fail(sb.toString());
FrequencyVerification.java
19
import junit.framework.
Assert
;
140
Assert
.fail(String.format("Frequency out of range: " + resultString));
MagnitudeVerification.java
19
import junit.framework.
Assert
;
105
Assert
.fail(String.format("Magnitude mean out of range: mean=%s (expected %s+/-%s)",
Completed in 594 milliseconds
<<
11
12
13
14
15
16
17
18
19
20
>>