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/CodeCacheStatFail_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/CodeCacheStatFail_test.cpp')
-rw-r--r-- | libnativebridge/tests/CodeCacheStatFail_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libnativebridge/tests/CodeCacheStatFail_test.cpp b/libnativebridge/tests/CodeCacheStatFail_test.cpp index 768f07944c..d13c6530ba 100644 --- a/libnativebridge/tests/CodeCacheStatFail_test.cpp +++ b/libnativebridge/tests/CodeCacheStatFail_test.cpp @@ -26,17 +26,17 @@ namespace android { // Tests that the bridge is initialized without errors if the code_cache is // existed as a file. TEST_F(NativeBridgeTest, CodeCacheStatFail) { - int fd = creat(codeCache(), O_RDWR); + int fd = creat(CodeCache(), O_RDWR); ASSERT_NE(-1, fd); close(fd); struct stat st; - ASSERT_EQ(-1, stat(codeCacheStatFail(), &st)); + ASSERT_EQ(-1, stat(CodeCacheStatFail(), &st)); ASSERT_EQ(ENOTDIR, errno); // Init ASSERT_TRUE(LoadNativeBridge(kNativeBridgeLibrary, nullptr)); - ASSERT_TRUE(PreInitializeNativeBridge(codeCacheStatFail(), "isa")); + ASSERT_TRUE(PreInitializeNativeBridge(CodeCacheStatFail(), "isa")); ASSERT_TRUE(InitializeNativeBridge(nullptr, nullptr)); ASSERT_TRUE(NativeBridgeAvailable()); ASSERT_FALSE(NativeBridgeError()); @@ -45,7 +45,7 @@ TEST_F(NativeBridgeTest, CodeCacheStatFail) { UnloadNativeBridge(); ASSERT_FALSE(NativeBridgeError()); - unlink(codeCache()); + unlink(CodeCache()); } } // namespace android |