1 /*
2  *  Copyright 2018 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #include <memory>
12 
13 #include "rtc_base/logging.h"
14 #include "sdk/android/native_api/jni/java_types.h"
15 #include "sdk/android/src/jni/jni_helpers.h"
16 
17 namespace webrtc {
18 namespace jni {
19 
JNI_FUNCTION_DECLARATION(void,LoggableTest_nativeLogInfoTestMessage,JNIEnv * jni,jclass,jstring j_message)20 JNI_FUNCTION_DECLARATION(void,
21                          LoggableTest_nativeLogInfoTestMessage,
22                          JNIEnv* jni,
23                          jclass,
24                          jstring j_message) {
25   std::string message =
26       JavaToNativeString(jni, JavaParamRef<jstring>(j_message));
27   RTC_LOG(LS_INFO) << message;
28 }
29 
30 }  // namespace jni
31 }  // namespace webrtc
32