Index: mojo/android/javatests/src/org/chromium/mojo/bindings/ConnectorTest.java |
diff --git a/mojo/android/javatests/src/org/chromium/mojo/bindings/ConnectorTest.java b/mojo/android/javatests/src/org/chromium/mojo/bindings/ConnectorTest.java |
index ff5b464d6631634dec3a318860f9779357b4ebc3..09871ca42cf1d2b0e2aa6f709b8af36569719880 100644 |
--- a/mojo/android/javatests/src/org/chromium/mojo/bindings/ConnectorTest.java |
+++ b/mojo/android/javatests/src/org/chromium/mojo/bindings/ConnectorTest.java |
@@ -51,7 +51,7 @@ public class ConnectorTest extends MojoTestCase { |
mConnector.setErrorHandler(mErrorHandler); |
mConnector.start(); |
mTestMessage = BindingsTestUtils.newRandomMessageWithHeader(DATA_LENGTH); |
- assertNull(mErrorHandler.exception); |
+ assertNull(mErrorHandler.getLastMojoException()); |
assertEquals(0, mReceiver.messages.size()); |
} |
@@ -71,7 +71,7 @@ public class ConnectorTest extends MojoTestCase { |
@SmallTest |
public void testSendingMessage() { |
mConnector.accept(mTestMessage); |
- assertNull(mErrorHandler.exception); |
+ assertNull(mErrorHandler.getLastMojoException()); |
ByteBuffer received = ByteBuffer.allocateDirect(DATA_LENGTH); |
MessagePipeHandle.ReadMessageResult result = mHandle.readMessage(received, 0, |
MessagePipeHandle.ReadFlags.NONE); |
@@ -88,7 +88,7 @@ public class ConnectorTest extends MojoTestCase { |
mHandle.writeMessage(mTestMessage.getMessage().buffer, new ArrayList<Handle>(), |
MessagePipeHandle.WriteFlags.NONE); |
nativeRunLoop(RUN_LOOP_TIMEOUT_MS); |
- assertNull(mErrorHandler.exception); |
+ assertNull(mErrorHandler.getLastMojoException()); |
assertEquals(1, mReceiver.messages.size()); |
MessageWithHeader received = mReceiver.messages.get(0); |
assertEquals(0, received.getMessage().handles.size()); |
@@ -102,7 +102,8 @@ public class ConnectorTest extends MojoTestCase { |
public void testErrors() { |
mHandle.close(); |
nativeRunLoop(RUN_LOOP_TIMEOUT_MS); |
- assertNotNull(mErrorHandler.exception); |
- assertEquals(MojoResult.FAILED_PRECONDITION, mErrorHandler.exception.getMojoResult()); |
+ assertNotNull(mErrorHandler.getLastMojoException()); |
+ assertEquals(MojoResult.FAILED_PRECONDITION, |
+ mErrorHandler.getLastMojoException().getMojoResult()); |
} |
} |