1 /*
2  * Copyright (C) 2021 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 #include "odrefresh/odrefresh.h"
18 
19 #include "base/common_art_test.h"
20 #include "base/file_utils.h"
21 
22 namespace art {
23 namespace odrefresh {
24 
TEST(OdRefreshTest,OdrefreshArtifactDirectory)25 TEST(OdRefreshTest, OdrefreshArtifactDirectory) {
26     // odrefresh.h defines kOdrefreshArtifactDirectory for external callers of odrefresh. This is
27     // where compilation artifacts end up.
28     ScopedUnsetEnvironmentVariable no_env("ART_APEX_DATA");
29     EXPECT_EQ(kOdrefreshArtifactDirectory, GetArtApexData() + "/dalvik-cache");
30 }
31 
32 }  // namespace odrefresh
33 }  // namespace art
34