Home
last modified time | relevance | path

Searched refs:tempFile (Results 1 – 4 of 4) sorted by relevance

/system/netd/server/
DFirewallControllerTest.cpp332 const std::string tempFile = "/data/local/tmp/fake_uid_mapping"; in TEST_F() local
335 EXPECT_TRUE(WriteStringToFile(test.content, tempFile, false)); in TEST_F()
336 uint32_t got = FirewallController::discoverMaximumValidUid(tempFile); in TEST_F()
337 EXPECT_EQ(0, remove(tempFile.c_str())); in TEST_F()
345 EXPECT_NE(0, access(tempFile.c_str(), F_OK)); in TEST_F()
346 EXPECT_EQ(4294967294, FirewallController::discoverMaximumValidUid(tempFile)); in TEST_F()
/system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/
DTestUtils.java40 Path tempFile = Files.createTempFile(dir, "tmp", null /* suffix */); in createFile() local
41 Files.write(tempFile, Arrays.asList(lines), StandardCharsets.US_ASCII); in createFile()
42 return tempFile.toString(); in createFile()
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DTimeZoneDistroTest.java46 for (File tempFile : testFiles) { in tearDown()
47 tempFile.delete(); in tearDown()
DFileUtilsTest.java47 for (File tempFile : testFiles) { in tearDown()
48 tempFile.delete(); in tearDown()