blob: 1a11075216faaaccf88ee99c63bc3ca303326c34 [file] [log] [blame]
Paulina Hensman1ec04f12018-06-21 14:31:38 +02001/*
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
17namespace webrtc {
18namespace jni {
19
20JNI_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