summaryrefslogtreecommitdiff
path: root/libnativebridge/tests/CodeCacheExists_test.cpp
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2024-07-07 16:04:44 +0100
committer Roland Levillain <rpl@google.com> 2024-07-09 14:15:21 +0000
commit270cdb2befd4fd5e4af697700f84eca25016aa4c (patch)
tree65eabc1684cec33e5fccf1dc4773ce2b62dc437e /libnativebridge/tests/CodeCacheExists_test.cpp
parenta8e94b7dda00ced868f6c5e91af5234eea332b00 (diff)
Style changes in `libnativebridge-tests`.
This is a follow-up to https://android-review.git.corp.google.com/c/platform/art/+/3080063. Test: atest --host libnativebridge-tests Test: atest libnativebridge-tests Bug: 189484095 Flag: TEST_ONLY Change-Id: I8d30747d8713e9c1d29e08758df7c7d9d68e2846
Diffstat (limited to 'libnativebridge/tests/CodeCacheExists_test.cpp')
-rw-r--r--libnativebridge/tests/CodeCacheExists_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libnativebridge/tests/CodeCacheExists_test.cpp b/libnativebridge/tests/CodeCacheExists_test.cpp
index c740bec79c..0e6d237c89 100644
--- a/libnativebridge/tests/CodeCacheExists_test.cpp
+++ b/libnativebridge/tests/CodeCacheExists_test.cpp
@@ -27,26 +27,26 @@ namespace android {
TEST_F(NativeBridgeTest, CodeCacheExists) {
// Make sure that code_cache does not exists
struct stat st;
- ASSERT_EQ(-1, stat(codeCache(), &st));
+ ASSERT_EQ(-1, stat(CodeCache(), &st));
ASSERT_EQ(ENOENT, errno);
// Create the code_cache
- ASSERT_EQ(0, mkdir(codeCache(), S_IRWXU | S_IRWXG | S_IXOTH));
+ ASSERT_EQ(0, mkdir(CodeCache(), S_IRWXU | S_IRWXG | S_IXOTH));
// Init
ASSERT_TRUE(LoadNativeBridge(kNativeBridgeLibrary, nullptr));
- ASSERT_TRUE(PreInitializeNativeBridge(appDataDir(), "isa"));
+ ASSERT_TRUE(PreInitializeNativeBridge(AppDataDir(), "isa"));
ASSERT_TRUE(InitializeNativeBridge(nullptr, nullptr));
ASSERT_TRUE(NativeBridgeAvailable());
ASSERT_FALSE(NativeBridgeError());
// Check that the code cache is still there
- ASSERT_EQ(0, stat(codeCache(), &st));
+ ASSERT_EQ(0, stat(CodeCache(), &st));
ASSERT_TRUE(S_ISDIR(st.st_mode));
// Clean up
UnloadNativeBridge();
- ASSERT_EQ(0, rmdir(codeCache()));
+ ASSERT_EQ(0, rmdir(CodeCache()));
ASSERT_FALSE(NativeBridgeError());
}