• Home
  • Raw
  • Download

Lines Matching refs:MOUNT_POINT

438 #define MOUNT_POINT "/data/local/tmp/mount"  macro
442 EXPECT_EQ(system("mkdir " MOUNT_POINT), 0); in SetupFileSystem()
444 system((std::string("mount ") + loop_device + " " MOUNT_POINT).c_str()), in SetupFileSystem()
446 EXPECT_EQ(system("echo Original > " MOUNT_POINT "/file"), 0); in SetupFileSystem()
447 EXPECT_EQ(system("umount -D " MOUNT_POINT), 0); in SetupFileSystem()
448 EXPECT_EQ(system("rmdir " MOUNT_POINT), 0); in SetupFileSystem()
452 unique_fd fd(open(MOUNT_POINT, O_RDONLY)); in Trim()
464 EXPECT_EQ(system("mkdir " MOUNT_POINT), 0); in TEST_F()
466 system((std::string("mount ") + bow_device_ + " " MOUNT_POINT).c_str()), in TEST_F()
470 EXPECT_EQ(system("echo Changed > " MOUNT_POINT "/file"), 0); in TEST_F()
472 EXPECT_EQ(system("umount -D " MOUNT_POINT), 0); in TEST_F()
475 system((std::string("mount ") + loop_device_ + " " MOUNT_POINT).c_str()), in TEST_F()
478 std::ifstream(MOUNT_POINT "/file") >> contents; in TEST_F()
480 EXPECT_EQ(system("umount -D " MOUNT_POINT), 0); in TEST_F()
481 EXPECT_EQ(system("rmdir " MOUNT_POINT), 0); in TEST_F()
486 EXPECT_EQ(system("mkdir " MOUNT_POINT), 0); in TEST_F()
488 system((std::string("mount ") + bow_device_ + " " MOUNT_POINT).c_str()), in TEST_F()
492 EXPECT_EQ(system("echo Changed > " MOUNT_POINT "/file"), 0); in TEST_F()
493 EXPECT_EQ(system("umount -D " MOUNT_POINT), 0); in TEST_F()
498 system((std::string("mount ") + loop_device_ + " " MOUNT_POINT).c_str()), in TEST_F()
501 std::ifstream(MOUNT_POINT "/file") >> contents; in TEST_F()
503 EXPECT_EQ(system("umount -D " MOUNT_POINT), 0); in TEST_F()
504 EXPECT_EQ(system("rmdir " MOUNT_POINT), 0); in TEST_F()