Back to index

lightning-sunbird  0.9+nobinonly
Functions
GetStringChars_1.cpp File Reference
#include "JNIEnvTests.h"
#include "StringOperations.h"

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_GetStringChars_1)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetStringChars_1  )

Definition at line 40 of file GetStringChars_1.cpp.

{
  GET_JNI_FOR_TEST

  IMPLEMENT_GetMethodID_METHOD("Test1", "Print_string", "(Ljava/lang/String;)V");

  jboolean *isCopy;
  const jchar* chars = env->GetStringChars(NULL, isCopy);
  if(chars==NULL){
    return TestResult::PASS("GetStringChars(NULL, isCopy) returns correct value");
  }else{
    return TestResult::FAIL("GetStringChars(NULL, isCopy) returns incorrect value");
  }
  

}

Here is the call graph for this function: