blob: 65bd3f60588a140ee179bb119e6d23bc1a980b03 [file] [log] [blame]
android-t13d2c5b22022-10-12 13:43:18 +08001/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/** Utils for testing with minimal dependencies. */
18
19#ifndef ART_LIBARTBASE_BASE_TESTING_H_
20#define ART_LIBARTBASE_BASE_TESTING_H_
21
22#include <string>
23#include <vector>
24
25namespace art {
26namespace testing {
27
28// Gets the names of the libcore modules.
29// If `core_only` is true, only returns the names of CORE_IMG_JARS in Android.common_path.mk.
30std::vector<std::string> GetLibCoreModuleNames(bool core_only = false);
31
32// Gets the paths of the libcore dex files for given modules.
33std::vector<std::string> GetLibCoreDexFileNames(const std::vector<std::string>& modules);
34
35// Gets the paths of the libcore dex files.
36// If `core_only` is true, only returns the filenames of CORE_IMG_JARS in Android.common_path.mk.
37std::vector<std::string> GetLibCoreDexFileNames(bool core_only = false);
38
39} // namespace testing
40} // namespace art
41
42#endif // ART_LIBARTBASE_BASE_TESTING_H_