You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
708 B

// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/test/android/url_utils.h"
#include "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
#include "jni/UrlUtils_jni.h"
namespace base {
namespace android {
FilePath GetIsolatedTestRoot() {
JNIEnv* env = base::android::AttachCurrentThread();
ScopedJavaLocalRef<jstring> jtest_data_dir =
Java_UrlUtils_getIsolatedTestRoot(env);
base::FilePath test_data_dir(
base::android::ConvertJavaStringToUTF8(env, jtest_data_dir));
return test_data_dir;
}
} // namespace android
} // namespace base