/ndk/build/gmsl/ |
gmsl-tests | 59 test_assert = $(if $(filter undefined,$(origin 2)),$(eval 2 :=))$(shell $(ECHO) -n $(if $(call seq,$1,$2),$(call test_pass,$1,$2),$(call test_fail,$1,$2)) >&2) 62 $(call test_assert,$(call not,$(true)),$(false)) 63 $(call test_assert,$(call not,$(false)),$(true)) 67 $(call test_assert,$(call or,$(true),$(true)),$(true)) 68 $(call test_assert,$(call or,$(true),$(false)),$(true)) 69 $(call test_assert,$(call or,$(false),$(true)),$(true)) 70 $(call test_assert,$(call or,$(false),$(false)),$(false)) 74 $(call test_assert,$(call and,$(true),$(true)),$(true)) 75 $(call test_assert,$(call and,$(true),$(false)),$(false)) 76 $(call test_assert,$(call and,$(false),$(true)),$(false) [all...] |
/external/icu4c/test/cintltst/ |
utexttst.c | 35 #define TEST_ASSERT(x) \ 74 TEST_ASSERT(c == 0x41); 76 TEST_ASSERT(utb == NULL); 80 TEST_ASSERT(uta == &utLoc); 83 TEST_ASSERT(uta == &utLoc); 98 TEST_ASSERT(utb != NULL); 99 TEST_ASSERT(utb != uta); 101 TEST_ASSERT(len == u_strlen(uString)); 117 TEST_ASSERT(uta!=NULL); 120 TEST_ASSERT(b==TRUE) [all...] |
reapits.c | 35 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ 196 TEST_ASSERT(status == U_REGEX_INVALID_FLAG); 202 TEST_ASSERT(status == U_REGEX_UNIMPLEMENTED); 209 TEST_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR && re == NULL); 215 TEST_ASSERT(status == U_USELESS_COLLATOR_ERROR && re == NULL); 230 TEST_ASSERT(u_strcmp(pat, p) == 0); 231 TEST_ASSERT(len==(int32_t)strlen("abc*")); 256 TEST_ASSERT(clone1 != NULL); 261 TEST_ASSERT(clone2 != NULL); 267 TEST_ASSERT(clone3 != NULL) [all...] |
tracetst.c | 50 #define TEST_ASSERT(expr) \ 226 TEST_ASSERT(originalTEntryFunc != testTraceEntry); 227 TEST_ASSERT(originalTExitFunc != testTraceExit); 228 TEST_ASSERT(originalTDataFunc != testTraceData); 232 TEST_ASSERT(e == testTraceEntry); 233 TEST_ASSERT(x == testTraceExit); 234 TEST_ASSERT(d == testTraceData); 235 TEST_ASSERT(context == newContext); 247 TEST_ASSERT(level==UTRACE_OFF); 250 TEST_ASSERT(level==UTRACE_VERBOSE) [all...] |
hpmufn.c | 54 #define TEST_ASSERT(expr) \ 239 TEST_ASSERT(This->fLockCount == 0); 240 TEST_ASSERT(This->fMagic == 123456); 249 TEST_ASSERT(This->fMagic == 123456); 257 TEST_ASSERT(This->fMagic == 123456); 259 TEST_ASSERT(This->fLockCount >= 0); 331 TEST_ASSERT(gTotalMutexesInitialized > 0); 332 TEST_ASSERT(gTotalMutexesActive > 0); 339 TEST_ASSERT(gTotalMutexesInitialized > 0); 340 TEST_ASSERT(gTotalMutexesActive == 0) [all...] |
/external/webkit/Tools/TestWebKitAPI/Tests/WebKit2/ |
WKPreferences.cpp | 40 TEST_ASSERT(WKGetTypeID(preference) == WKPreferencesGetTypeID()); 65 TEST_ASSERT(WKPreferencesGetJavaScriptEnabled(preference) == true); 66 TEST_ASSERT(WKPreferencesGetLoadsImagesAutomatically(preference) == true); 67 TEST_ASSERT(WKPreferencesGetOfflineWebApplicationCacheEnabled(preference) == false); 68 TEST_ASSERT(WKPreferencesGetLocalStorageEnabled(preference) == true); 69 TEST_ASSERT(WKPreferencesGetXSSAuditorEnabled(preference) == true); 70 TEST_ASSERT(WKPreferencesGetFrameFlatteningEnabled(preference) == false); 71 TEST_ASSERT(WKPreferencesGetPluginsEnabled(preference) == true); 72 TEST_ASSERT(WKPreferencesGetJavaEnabled(preference) == true); 73 TEST_ASSERT(WKPreferencesGetJavaScriptCanOpenWindowsAutomatically(preference) == true) [all...] |
WKString.cpp | 35 TEST_ASSERT(!WKStringIsEmpty(string)); 36 TEST_ASSERT(WKStringIsEqual(string, string)); 37 TEST_ASSERT(WKStringIsEqualToUTF8CString(string, "hello")); 38 TEST_ASSERT(WKStringGetMaximumUTF8CStringSize(string) == 16); 44 TEST_ASSERT(actualSize == 6); 45 TEST_ASSERT(strcmp(buffer, "hello") == 0); 50 TEST_ASSERT(maxSize == 5); 55 TEST_ASSERT(actualSize == 5); 58 TEST_ASSERT(!memcmp(uniBuffer, helloBuffer, 10)); 62 TEST_ASSERT(actualSize == 4) [all...] |
PageLoadBasic.cpp | 53 TEST_ASSERT(state->didDecidePolicyForNavigationAction); 54 TEST_ASSERT(!state->didCommitLoadForFrame); 57 TEST_ASSERT(!WKFrameCopyURL(frame)); 59 TEST_ASSERT(!state->didStartProvisionalLoadForFrame); 68 TEST_ASSERT(state->didDecidePolicyForNavigationAction); 69 TEST_ASSERT(state->didStartProvisionalLoadForFrame); 72 TEST_ASSERT(!WKFrameCopyProvisionalURL(frame)); 80 TEST_ASSERT(state->didDecidePolicyForNavigationAction); 81 TEST_ASSERT(state->didStartProvisionalLoadForFrame); 82 TEST_ASSERT(state->didCommitLoadForFrame) [all...] |
SpacebarScrolling.cpp | 71 TEST_ASSERT(runJSTest(webView.page(), "isDocumentScrolled()", "false")); 72 TEST_ASSERT(runJSTest(webView.page(), "textFieldContainsSpace()", "false")); 76 TEST_ASSERT(runJSTest(webView.page(), "isDocumentScrolled()", "false")); 77 TEST_ASSERT(runJSTest(webView.page(), "textFieldContainsSpace()", "true")); 83 TEST_ASSERT(!didNotHandleKeyDownEvent); 85 TEST_ASSERT(didNotHandleKeyDownEvent); 88 TEST_ASSERT(runJSTest(webView.page(), "blurTextField()", "undefined")); 93 TEST_ASSERT(runJSTest(webView.page(), "isDocumentScrolled()", "true")); 94 TEST_ASSERT(runJSTest(webView.page(), "textFieldContainsSpace()", "true")); 96 TEST_ASSERT(!didNotHandleKeyDownEvent) [all...] |
PageLoadDidChangeLocationWithinPageForFrame.cpp | 50 TEST_ASSERT(type == kWKSameDocumentNavigationSessionStatePop); 51 TEST_ASSERT(!didChangeLocationWithinPage); 56 TEST_ASSERT(type == kWKSameDocumentNavigationAnchorNavigation); 82 TEST_ASSERT(!WKURLIsEqual(initialURL.get(), urlAfterAnchorClick.get()));
|
PreventEmptyUserAgent.cpp | 41 TEST_ASSERT(context == reinterpret_cast<void*>(0x1234578)); 42 TEST_ASSERT(resultSerializedScriptValue); 46 TEST_ASSERT(JSValueIsString(scriptContext, scriptValue)); 51 TEST_ASSERT(JSStringGetLength(scriptString));
|
CanHandleRequest.cpp | 42 TEST_ASSERT(WKStringIsEqualToUTF8CString(messageName, "DidCheckCanHandleRequest")); 43 TEST_ASSERT(WKGetTypeID(body) == WKBooleanGetTypeID()); 69 TEST_ASSERT(canHandleRequest);
|
CookieManager.cpp | 44 TEST_ASSERT(context == reinterpret_cast<void*>(0x1234578)); 45 TEST_ASSERT(policy == testPolicy); 54 TEST_ASSERT(context == reinterpret_cast<void*>(0x1234578));
|
DocumentStartUserScriptAlertCrash.cpp | 39 TEST_ASSERT(frame); 40 TEST_ASSERT(WKFrameGetPage(frame) == page); 41 TEST_ASSERT(WKStringIsEqualToUTF8CString(alertText, "an alert"));
|
EvaluateJavaScript.cpp | 41 TEST_ASSERT(context == reinterpret_cast<void*>(0x1234578)); 42 TEST_ASSERT(!resultSerializedScriptValue); 46 TEST_ASSERT(!error);
|
FrameMIMETypeHTML.cpp | 40 TEST_ASSERT(WKStringIsEmpty(wkMIME.get())); 46 TEST_ASSERT(WKStringIsEqualToUTF8CString(wkMIME.get(), "text/html")); 52 TEST_ASSERT(WKStringIsEqualToUTF8CString(wkMIME.get(), "text/html"));
|
FrameMIMETypePNG.cpp | 40 TEST_ASSERT(WKStringIsEmpty(wkMIME.get())); 46 TEST_ASSERT(WKStringIsEqualToUTF8CString(wkMIME.get(), "image/png")); 52 TEST_ASSERT(WKStringIsEqualToUTF8CString(wkMIME.get(), "image/png"));
|
/external/icu4c/test/intltest/ |
v32test.cpp | 64 #define TEST_ASSERT(expr) \ 99 TEST_ASSERT(b->size() == 3); 100 TEST_ASSERT(b->elementAti(1) == 20); 114 TEST_ASSERT(*b != *a); 115 TEST_ASSERT(!(*b == *a)); 116 TEST_ASSERT(!b->equals(*a)); 118 TEST_ASSERT(*b == *a); 119 TEST_ASSERT(!(*b != *a)); 120 TEST_ASSERT(b->equals(*a)); 122 TEST_ASSERT(*b != *a) [all...] |
uvectest.cpp | 64 #define TEST_ASSERT(expr) \ 113 TEST_ASSERT(a->elementAti(0) == 10); 114 TEST_ASSERT(a->elementAti(1) == 15); 115 TEST_ASSERT(a->elementAti(2) == 20); 116 TEST_ASSERT(a->elementAti(3) == 30); 117 TEST_ASSERT(a->indexOf((int32_t)3) == -1); 118 TEST_ASSERT(a->indexOf((int32_t)15) == 1); 119 TEST_ASSERT(a->indexOf((int32_t)15, 2) == -1); 120 TEST_ASSERT(a->contains((int32_t)15)); 121 TEST_ASSERT(!a->contains((int32_t)5)) [all...] |
utxttest.cpp | 27 #define TEST_ASSERT(x) \ 298 TEST_ASSERT(utext_isWritable(ut) == TRUE); 436 TEST_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); 453 TEST_ASSERT(uti == usi); 454 TEST_ASSERT(utc == usc); 466 TEST_ASSERT(uti == expectedNativeLength); 512 TEST_ASSERT(actualDelta == expectedDelta); 530 TEST_ASSERT(uti == usi); 531 TEST_ASSERT(utc == usc); 540 TEST_ASSERT(uti == expectedNativeLength) [all...] |
locnmtst.cpp | 12 test_assert( Test (should be TRUE) ) 15 test_assert(i==3); 20 #define test_assert(test) \ macro 33 test_assert(i==3, toString(i)); 118 test_assert(U_SUCCESS(status)); 130 test_assert(U_SUCCESS(status)); 140 test_assert(U_SUCCESS(status)); 156 test_assert(U_SUCCESS(status)); 168 test_assert(U_SUCCESS(status));
|
rbbiapts.cpp | 34 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ 265 TEST_ASSERT(tstr == str1); 277 TEST_ASSERT(wordIter1->getText() != charIter1->getText()); 280 TEST_ASSERT(tstr == str2); 283 TEST_ASSERT(tstr == str1); 298 TEST_ASSERT(rb->preceding(2) == 0); 299 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); 322 TEST_ASSERT(pos==0); 324 TEST_ASSERT(pos==5); 326 TEST_ASSERT(pos==6) [all...] |
/external/webkit/Tools/WebKitAPITest/tests/ |
WebViewDestruction.cpp | 56 TEST_ASSERT(SUCCEEDED(WebKitCreateInstance(__uuidof(WebView), &webView))); 58 TEST_ASSERT(window.initialize()); 59 TEST_ASSERT(SUCCEEDED(webView->setHostWindow(reinterpret_cast<OLE_HANDLE>(window.window())))); 60 TEST_ASSERT(SUCCEEDED(webView->initWithFrame(window.clientRect(), 0, 0))); 63 TEST_ASSERT(viewPrivate); 64 TEST_ASSERT(SUCCEEDED(viewPrivate->viewWindow(reinterpret_cast<OLE_HANDLE*>(&viewWindow)))); 65 TEST_ASSERT(IsWindow(viewWindow)); 90 TEST_ASSERT(currentWebViewCount > 0); 94 TEST_ASSERT(webViewCount() == currentWebViewCount - 1); 95 TEST_ASSERT(!IsWindow(viewWindow)) [all...] |
/external/webkit/Tools/TestWebKitAPI/Tests/WTF/ |
VectorBasic.cpp | 35 TEST_ASSERT(intVector.isEmpty()); 36 TEST_ASSERT(intVector.size() == 0); 37 TEST_ASSERT(intVector.capacity() == 0);
|
/external/webkit/Tools/TestWebKitAPI/ |
JavaScriptTest.cpp | 46 TEST_ASSERT(resultSerializedScriptValue); 51 TEST_ASSERT(scriptContext); 54 TEST_ASSERT(scriptValue); 57 TEST_ASSERT(scriptString); 65 TEST_ASSERT(!error);
|