From 270cdb2befd4fd5e4af697700f84eca25016aa4c Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Sun, 7 Jul 2024 16:04:44 +0100 Subject: 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 --- libnativebridge/tests/CodeCacheExists_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libnativebridge/tests/CodeCacheExists_test.cpp') 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()); } -- cgit v1.2.3-59-g8ed1b