Index: mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java |
diff --git a/mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java b/mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java |
index 0e4d4d70294ae35d4e5201aa8d27d74d972e0e0d..928c4effb0deb0b815fcdd98ac92eeaa6a514512 100644 |
--- a/mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java |
+++ b/mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java |
@@ -493,7 +493,7 @@ public class CoreImplTest extends MojoTestCase { |
@SmallTest |
public void testInvalidHandle() { |
Core core = CoreImpl.getInstance(); |
- Handle handle = new InvalidHandle(); |
+ Handle handle = InvalidHandle.INSTANCE; |
// Checking wait. |
boolean exception = false; |
@@ -713,7 +713,7 @@ public class CoreImplTest extends MojoTestCase { |
assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); |
assertEquals(null, asyncWaiterResult.getException()); |
- core.getDefaultAsyncWaiter().asyncWait(new InvalidHandle(), Core.WaitFlags.READABLE, |
+ core.getDefaultAsyncWaiter().asyncWait(InvalidHandle.INSTANCE, Core.WaitFlags.READABLE, |
Core.DEADLINE_INFINITE, asyncWaiterResult); |
assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); |
assertEquals(null, asyncWaiterResult.getException()); |