• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
25 namespace art {
26 namespace 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.
30 std::vector<std::string> GetLibCoreModuleNames(bool core_only = false);
31 
32 // Gets the paths of the libcore dex files for given modules.
33 std::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.
37 std::vector<std::string> GetLibCoreDexFileNames(bool core_only = false);
38 
39 }  // namespace testing
40 }  // namespace art
41 
42 #endif  // ART_LIBARTBASE_BASE_TESTING_H_
43