Home
last modified time | relevance | path

Searched refs:testEventHandler (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/tests/CoreTests/android/core/
DRequestAPITest.java183 TestEventHandler testEventHandler = new TestEventHandler(); in testGet() local
190 testEventHandler.expectStatus(200); in testGet()
191 testEventHandler.expectHeaders(); in testGet()
192 testEventHandler.expectHeaderAdd(requestHeaders[REQ_CONNECTION], "Close"); in testGet()
193 testEventHandler.expectHeaderAdd(requestHeaders[REQ_CONTENT_LENGTH], "52"); in testGet()
194 testEventHandler.expectHeaderAdd(requestHeaders[REQ_CONTENT_TYPE], "text/html"); in testGet()
195 testEventHandler.expectData(52); in testGet()
198 "http://localhost:8080/test1", "GET", null, testEventHandler, in testGet()
205 if (!testEventHandler.expectPassed()) { in testGet()
206 Log.d(LOGTAG, testEventHandler.getFailureMessage()); in testGet()
[all …]