Lines Matching refs:setup_mount_destination
254 TEST(setup_mount_destination, dest_exists) { in TEST() argument
257 EXPECT_EQ(0, setup_mount_destination(nullptr, kValidDir, 0, 0, false, in TEST()
259 EXPECT_EQ(0, setup_mount_destination(nullptr, "/proc", 0, 0, true, nullptr)); in TEST()
260 EXPECT_EQ(0, setup_mount_destination(nullptr, "/dev", 0, 0, false, nullptr)); in TEST()
264 TEST(setup_mount_destination, mount_flags) { in TEST() argument
274 EXPECT_EQ(0, setup_mount_destination("/proc", proc.c_str(), -1, -1, true, in TEST()
282 EXPECT_EQ(0, setup_mount_destination("/proc/self", proc_self.c_str(), -1, -1, in TEST()
289 TEST(setup_mount_destination, reject_relative_bind) { in TEST() argument
291 EXPECT_NE(0, setup_mount_destination("foo", kNoSuchDir, 0, 0, true, nullptr)); in TEST()
295 TEST(setup_mount_destination, create_pseudo_fs) { in TEST() argument
301 EXPECT_EQ(0, setup_mount_destination("none", no_chmod.c_str(), -1, -1, false, in TEST()
312 EXPECT_NE(0, setup_mount_destination("none", with_chmod.c_str(), in TEST()
319 TEST(setup_mount_destination, missing_source) { in TEST() argument
321 EXPECT_NE(0, setup_mount_destination(kNoSuchDir, kNoSuchDir, 0, 0, false, in TEST()
323 EXPECT_NE(0, setup_mount_destination(kNoSuchDir, kNoSuchDir, 0, 0, true, in TEST()
328 TEST(setup_mount_destination, create_bind_dir) { in TEST() argument
334 EXPECT_EQ(0, setup_mount_destination(kValidDir, child_dir.c_str(), -1, -1, in TEST()
341 TEST(setup_mount_destination, create_bind_file) { in TEST() argument
347 EXPECT_EQ(0, setup_mount_destination(kValidFile, child_file.c_str(), -1, -1, in TEST()
354 TEST(setup_mount_destination, create_char_dev) { in TEST() argument
360 EXPECT_EQ(0, setup_mount_destination(kValidCharDev, child_dev.c_str(), -1, -1, in TEST()