diff options
author | 2024-07-07 16:04:44 +0100 | |
---|---|---|
committer | 2024-07-09 14:15:21 +0000 | |
commit | 270cdb2befd4fd5e4af697700f84eca25016aa4c (patch) | |
tree | 65eabc1684cec33e5fccf1dc4773ce2b62dc437e /libnativebridge/tests/CodeCacheCreate_test.cpp | |
parent | a8e94b7dda00ced868f6c5e91af5234eea332b00 (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/CodeCacheCreate_test.cpp')
-rw-r--r-- | libnativebridge/tests/CodeCacheCreate_test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libnativebridge/tests/CodeCacheCreate_test.cpp b/libnativebridge/tests/CodeCacheCreate_test.cpp index 57b1abc4c5..9af226c596 100644 --- a/libnativebridge/tests/CodeCacheCreate_test.cpp +++ b/libnativebridge/tests/CodeCacheCreate_test.cpp @@ -26,25 +26,25 @@ namespace android { // exist. TEST_F(NativeBridgeTest, CodeCacheCreate) { // Make sure that code_cache does not exist - rmdir(codeCache()); + rmdir(CodeCache()); struct stat st; - ASSERT_EQ(-1, stat(codeCache(), &st)); + ASSERT_EQ(-1, stat(CodeCache(), &st)); ASSERT_EQ(ENOENT, errno); // 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 code_cache was created - 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()); } |