Home
last modified time | relevance | path

Searched refs:expectedError (Results 1 – 25 of 33) sorted by relevance

12

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/test/
DTestCoroutineContextTest.kt249 val expectedError = IllegalAccessError("hello") in <lambda>() constant
252 throw expectedError in <lambda>()
260 val expectedError = IllegalAccessError("hello") in <lambda>() constant
263 throw expectedError in <lambda>()
267 assertUnhandledException { it === expectedError} in <lambda>()
273 val expectedError = TestException("hello") in <lambda>() constant
277 suspendedAsyncWithExceptionAfterDelay(delay, expectedError, expectedValue, true) in <lambda>()
281 assertUnhandledException { it === expectedError} in <lambda>()
287 val expectedError = IllegalAccessError("hello") in <lambda>() constant
291 suspendedAsyncWithExceptionAfterDelay(delay, expectedError, expectedValue, false) in <lambda>()
[all …]
/external/boringssl/src/ssl/test/runner/
Drunner.go552 expectedError string member
1256 if !test.shouldFail && (len(test.expectedError) > 0 || len(test.expectedLocalError) > 0) {
1604 expectedError := translateExpectedError(test.expectedError)
1605 correctFailure := len(expectedError) == 0 || strings.Contains(stderr, expectedError)
1628 msg = "bad error (wanted '" + expectedError + "' / '" + test.expectedLocalError + "')"
1898 expectedError: ":UNEXPECTED_MESSAGE:",
1971 expectedError: ":UNEXPECTED_MESSAGE:",
1990 expectedError: ":UNEXPECTED_RECORD:",
2002 expectedError: ":TLSV1_ALERT_RECORD_OVERFLOW:",
2014 expectedError: ":TLSV1_ALERT_RECORD_OVERFLOW:",
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DSpdy3Test.java58 final ErrorCode expectedError = ErrorCode.PROTOCOL_ERROR; in goAwayRoundTrip() local
66 frame.writeInt(expectedError.spdyGoAwayCode); in goAwayRoundTrip()
69 assertEquals(frame, sendGoAway(expectedStreamId, expectedError, Util.EMPTY_BYTE_ARRAY)); in goAwayRoundTrip()
72 assertEquals(frame, sendGoAway(expectedStreamId, expectedError, new byte[8])); in goAwayRoundTrip()
80 assertEquals(expectedError, errorCode); in goAwayRoundTrip()
DHttp2Test.java565 final ErrorCode expectedError = ErrorCode.PROTOCOL_ERROR; in goAwayWithoutDebugDataRoundTrip() local
572 frame.writeInt(expectedError.httpCode); in goAwayWithoutDebugDataRoundTrip()
575 assertEquals(frame, sendGoAway(expectedStreamId, expectedError, Util.EMPTY_BYTE_ARRAY)); in goAwayWithoutDebugDataRoundTrip()
581 assertEquals(expectedError, errorCode); in goAwayWithoutDebugDataRoundTrip()
588 final ErrorCode expectedError = ErrorCode.PROTOCOL_ERROR; in goAwayWithDebugDataRoundTrip() local
597 frame.writeInt(expectedError.httpCode); in goAwayWithDebugDataRoundTrip()
601 assertEquals(frame, sendGoAway(0, expectedError, expectedData.toByteArray())); in goAwayWithDebugDataRoundTrip()
607 assertEquals(expectedError, errorCode); in goAwayWithDebugDataRoundTrip()
/external/angle/src/tests/gl_tests/
DSRGBFramebufferTest.cpp55 GLenum expectedError = in TEST_P() local
60 EXPECT_GL_ERROR(expectedError); in TEST_P()
63 EXPECT_GL_ERROR(expectedError); in TEST_P()
64 if (expectedError == GL_NO_ERROR) in TEST_P()
70 EXPECT_GL_ERROR(expectedError); in TEST_P()
73 EXPECT_GL_ERROR(expectedError); in TEST_P()
74 if (expectedError == GL_NO_ERROR) in TEST_P()
/external/icu/icu4c/source/tools/ctestfw/
Dtstdtmod.cpp82 UBool IcuTestErrorCode::expectErrorAndReset(UErrorCode expectedError) { in expectErrorAndReset() argument
83 if(get() != expectedError) { in expectErrorAndReset()
84 errlog(FALSE, UnicodeString(u"expected: ") + u_errorName(expectedError), nullptr); in expectErrorAndReset()
91 UBool IcuTestErrorCode::expectErrorAndReset(UErrorCode expectedError, const char *fmt, ...) { in expectErrorAndReset() argument
92 if(get() != expectedError) { in expectErrorAndReset()
98 errlog(FALSE, UnicodeString(u"expected: ") + u_errorName(expectedError), buffer); in expectErrorAndReset()
/external/angle/src/tests/compiler_tests/
DEmulateGLDrawID_test.cpp28 void CheckCompileFailure(const std::string &shaderString, const char *expectedError = nullptr) in CheckCompileFailure() argument
36 if (expectedError) in CheckCompileFailure()
38 EXPECT_TRUE(infoLog.find(expectedError) != std::string::npos); in CheckCompileFailure()
DEmulateGLBaseVertexBaseInstance_test.cpp28 void CheckCompileFailure(const std::string &shaderString, const char *expectedError = nullptr) in CheckCompileFailure() argument
36 if (expectedError) in CheckCompileFailure()
38 EXPECT_TRUE(infoLog.find(expectedError) != std::string::npos); in CheckCompileFailure()
/external/deqp/external/openglcts/modules/gl/
Dgl4cSparseTextureTests.cpp62 GLint error, GLint expectedError) in verifyQueryError() argument
64 if (error != expectedError) in verifyQueryError()
67 << ", target: " << target << ", pname: " << pname << ", expected: " << expectedError in verifyQueryError()
85 …eUtils::verifyError(std::stringstream& log, const char* funcName, GLint error, GLint expectedError) in verifyError() argument
87 if (error != expectedError) in verifyError()
90 << ", expectedError: " << expectedError << ", returnedError: " << error << "] - "; in verifyError()
431 …ameterQueriesTestCase::testTextureSparseARB(const Functions& gl, GLint target, GLint expectedError) in testTextureSparseARB() argument
444 if (expectedError == GL_NO_ERROR) in testTextureSparseARB()
452 if (expectedError == GL_NO_ERROR) in testTextureSparseARB()
463 expectedError); in testTextureSparseARB()
[all …]
Dgl4cSparseTextureTests.hpp68 GLint expectedError);
70 …c bool verifyError(std::stringstream& log, const char* funcName, GLint error, GLint expectedError);
133 bool testTextureSparseARB(const Functions& gl, GLint target, GLint expectedError = GL_NO_ERROR);
134 …bool testVirtualPageSizeIndexARB(const Functions& gl, GLint target, GLint expectedError = GL_NO_ER…
/external/antlr/tool/src/test/java/org/antlr/test/
DTestCompositeGrammars.java258 …String expectedError = "error(161): "+tmpdir.toString().replaceFirst("\\-[0-9]+","")+"/M.g:2:8: co… in testCombinedImportsCombined() local
259 …assertEquals("unexpected errors: "+equeue, expectedError, equeue.errors.get(0).toString().replaceF… in testCombinedImportsCombined()
310 String expectedError = in testSameStringTwoNames() local
312 assertEquals(expectedError, equeue.errors.get(0).toString()); in testSameStringTwoNames()
363 String expectedError = in testSameNameTwoStrings() local
365 assertEquals(expectedError, equeue.errors.get(0).toString()); in testSameNameTwoStrings()
401 String expectedError = in testImportedTokenVocabIgnoredWithWarning() local
403 assertEquals(expectedError, equeue.warnings.get(0).toString()); in testImportedTokenVocabIgnoredWithWarning()
668 String expectedError = in testInvalidImportMechanism() local
670 assertEquals(expectedError, equeue.errors.get(0).toString().replaceFirst("\\-[0-9]+","")); in testInvalidImportMechanism()
[all …]
/external/icu/icu4c/source/tools/ctestfw/unicode/
Dtestlog.h44 UBool expectErrorAndReset(UErrorCode expectedError);
45 UBool expectErrorAndReset(UErrorCode expectedError, const char *fmt, ...);
/external/deqp/external/openglcts/modules/glesext/texture_cube_map_array/
DesextcTextureCubeMapArrayTex3DValidation.cpp204 bool TextureCubeMapArrayTex3DValidation::checkError(glw::GLint expectedError, const char* message) in checkError() argument
210 if (error != expectedError) in checkError()
212 …Log() << tcu::TestLog::Message << message << " Expected error: " << glu::getErrorStr(expectedError) in checkError()
DesextcTextureCubeMapArrayTex3DValidation.hpp71 bool checkError(glw::GLint expectedError, const char* message);
/external/kotlinx.coroutines/kotlinx-coroutines-test/test/
DTestRunBlockingTest.kt343 val expectedError = IllegalAccessError("hello") in <lambda>() constant
346 throw expectedError in <lambda>()
354 val expectedError = IllegalAccessError("hello") in <lambda>() constant
357 throw expectedError in <lambda>()
/external/icu/icu4c/source/test/cintltst/
Dnccbtst.h61 const char *mySubChar, int8_t len, const void* context, UErrorCode expectedError);
65 const char *mySubChar, int8_t len, const void* context, UErrorCode expectedError);
Dnccbtst.c3018 const char *mySubChar, int8_t len, const void* context, UErrorCode expectedError) in testConvertFromUnicodeWithContext() argument
3120 if(U_FAILURE(status) && status != expectedError) in testConvertFromUnicodeWithContext()
3198 const char *mySubChar, int8_t len, const void* context, UErrorCode expectedError) in testConvertToUnicodeWithContext() argument
3298 if(U_FAILURE(status) && status!=expectedError) in testConvertToUnicodeWithContext()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VMDebug/
DVMDebugTest.java45 int expectedError = JDWPConstants.Error.INVALID_OBJECT; in sendDebuggerActivity() local
54 checkReplyPacket(reply, "StringReference::Value command", expectedError); in sendDebuggerActivity()
/external/deqp/external/openglcts/modules/common/
DglcRobustnessTests.cpp219 bool verifyError(glw::GLint error, glw::GLint expectedError, const char* method);
373 bool GetnUniformTest::verifyError(GLint error, GLint expectedError, const char* method) in verifyError() argument
375 if (error != expectedError) in verifyError()
406 bool verifyError(glw::GLint error, glw::GLint expectedError, const char* method);
618 bool ReadnPixelsTest::verifyError(GLint error, GLint expectedError, const char* method) in verifyError() argument
620 if (error != expectedError) in verifyError()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StringReference/
DValueTest.java134 private void checkCommandError(long stringID, int expectedError) { in checkCommandError() argument
143 checkReplyPacket(reply, "StringReference::Value command", expectedError); in checkCommandError()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadGroupReference/
DNameTest.java141 private void checkCommandError(long groupID, int expectedError) { in checkCommandError() argument
150 checkReplyPacket(reply, "ThreadGroupReference::Name command", expectedError); in checkCommandError()
DParentTest.java151 private void checkCommandError(long groupID, int expectedError) { in checkCommandError() argument
160 checkReplyPacket(reply, "ThreadGroupReference::Name command", expectedError); in checkCommandError()
DChildrenTest.java186 private void checkCommandError(long groupID, int expectedError) { in checkCommandError() argument
196 expectedError); in checkCommandError()
/external/angle/third_party/vulkan-deps/glslang/src/gtests/
DTestFixture.h658 std::string input, expectedOutput, expectedError; in loadFilePreprocessAndCheck() local
662 tryLoadFile(expectedErrorFname, "expected error", &expectedError); in loadFilePreprocessAndCheck()
672 checkEqAndUpdateIfRequested(expectedError, error, in loadFilePreprocessAndCheck()
/external/deqp-deps/glslang/gtests/
DTestFixture.h658 std::string input, expectedOutput, expectedError; in loadFilePreprocessAndCheck() local
662 tryLoadFile(expectedErrorFname, "expected error", &expectedError); in loadFilePreprocessAndCheck()
672 checkEqAndUpdateIfRequested(expectedError, error, in loadFilePreprocessAndCheck()

12