Use the method descriptor for prototype and return type comparisons.

Change-Id: If2623b53e069d6f51c08849ac2798f792d465234
diff --git a/src/jni_compiler_test.cc b/src/jni_compiler_test.cc
index 79806f6..7677a7a 100644
--- a/src/jni_compiler_test.cc
+++ b/src/jni_compiler_test.cc
@@ -508,7 +508,7 @@
 
 int gSuspendCounterHandler_calls;
 void SuspendCountHandler(Method** frame) {
-  EXPECT_PRED2(String::EqualsUtf8, (*frame)->GetName(), "fooI");
+  EXPECT_TRUE((*frame)->GetName()->Equals("fooI"));
   gSuspendCounterHandler_calls++;
   Thread::Current()->DecrementSuspendCount();
 }
@@ -553,7 +553,7 @@
 
 int gExceptionHandler_calls;
 void ExceptionHandler(Method** frame) {
-  EXPECT_PRED2(String::EqualsUtf8, (*frame)->GetName(), "foo");
+  EXPECT_TRUE((*frame)->GetName()->Equals("foo"));
   gExceptionHandler_calls++;
   Thread::Current()->ClearException();
 }