/external/chromium/chrome/browser/ |
D | process_singleton_linux_uitest.cc | 34 lock_path_ = user_data_dir().Append(chrome::kSingletonLockFilename); in SetUp() 44 bool lock_exists = lstat(lock_path_.value().c_str(), &statbuf) == 0; in TearDown() 49 EXPECT_EQ(unlink(lock_path_.value().c_str()), 0); in TearDown() 53 FilePath lock_path_; member in __anonc27d25ff0111::ProcessSingletonLinuxTest 108 ASSERT_EQ(0, lstat(lock_path_.value().c_str(), &statbuf)); in TEST_F() 111 ssize_t len = readlink(lock_path_.value().c_str(), buf, PATH_MAX); in TEST_F() 189 EXPECT_EQ(0, unlink(lock_path_.value().c_str())); in TEST_F() 195 EXPECT_EQ(0, symlink(symlink_content.c_str(), lock_path_.value().c_str())); in TEST_F() 209 EXPECT_EQ(0, unlink(lock_path_.value().c_str())); in TEST_F() 210 EXPECT_EQ(0, symlink("FAKEFOOHOST-1234", lock_path_.value().c_str())); in TEST_F() [all …]
|
D | process_singleton_mac_unittest.cc | 29 lock_path_ = temp_dir_.path().Append(chrome::kSingletonLockFilename); in SetUp() 42 int fd = HANDLE_EINTR(open(lock_path_.value().c_str(), O_RDONLY)); in IsLocked() 65 FilePath lock_path_; member in __anon4b4a92a20111::ProcessSingletonMacTest
|
D | process_singleton_linux.cc | 755 lock_path_ = user_data_dir.Append(chrome::kSingletonLockFilename); in ProcessSingleton() 787 if (!ParseLockPath(lock_path_, &hostname, &pid)) { in NotifyOtherProcessWithTimeout() 794 UnlinkPath(lock_path_); in NotifyOtherProcessWithTimeout() 800 DisplayProfileInUseError(lock_path_.value(), hostname, pid); in NotifyOtherProcessWithTimeout() 806 UnlinkPath(lock_path_); in NotifyOtherProcessWithTimeout() 813 UnlinkPath(lock_path_); in NotifyOtherProcessWithTimeout() 819 if (!kill_unresponsive || !KillProcessByLockPath(lock_path_)) in NotifyOtherProcessWithTimeout() 850 if (!kill_unresponsive || !KillProcessByLockPath(lock_path_)) in NotifyOtherProcessWithTimeout() 866 if (!kill_unresponsive || !KillProcessByLockPath(lock_path_)) in NotifyOtherProcessWithTimeout() 929 if (!SymlinkPath(symlink_content, lock_path_)) { in Create() [all …]
|
D | process_singleton_mac.cc | 44 lock_path_(user_data_dir.Append(chrome::kSingletonLockFilename)), in ProcessSingleton() 74 lock_fd_ = HANDLE_EINTR(open(lock_path_.value().c_str(), in Create()
|
D | process_singleton.h | 156 FilePath lock_path_; variable 170 FilePath lock_path_; variable
|
/external/chromium_org/chrome/browser/ |
D | process_singleton_linux_unittest.cc | 77 lock_path_ = temp_dir_.path().Append(chrome::kSingletonLockFilename); in SetUp() 189 base::FilePath lock_path_; member in __anon380289280111::ProcessSingletonLinuxTest 228 ASSERT_EQ(0, lstat(lock_path_.value().c_str(), &statbuf)); in TEST_F() 231 ssize_t len = readlink(lock_path_.value().c_str(), buf, PATH_MAX); in TEST_F() 281 EXPECT_EQ(0, unlink(lock_path_.value().c_str())); in TEST_F() 287 EXPECT_EQ(0, symlink(symlink_content.c_str(), lock_path_.value().c_str())); in TEST_F() 301 EXPECT_EQ(0, unlink(lock_path_.value().c_str())); in TEST_F() 302 EXPECT_EQ(0, symlink("FAKEFOOHOST-1234", lock_path_.value().c_str())); in TEST_F() 316 EXPECT_EQ(0, unlink(lock_path_.value().c_str())); in TEST_F() 317 EXPECT_EQ(0, symlink("FAKEFOOHOST-1234", lock_path_.value().c_str())); in TEST_F() [all …]
|
D | process_singleton_linux.cc | 686 lock_path_ = user_data_dir.Append(chrome::kSingletonLockFilename); in ProcessSingleton() 721 if (!ParseLockPath(lock_path_, &hostname, &pid)) { in NotifyOtherProcessWithTimeout() 728 UnlinkPath(lock_path_); in NotifyOtherProcessWithTimeout() 735 if (DisplayProfileInUseError(lock_path_, hostname, pid)) { in NotifyOtherProcessWithTimeout() 736 UnlinkPath(lock_path_); in NotifyOtherProcessWithTimeout() 744 UnlinkPath(lock_path_); in NotifyOtherProcessWithTimeout() 751 UnlinkPath(lock_path_); in NotifyOtherProcessWithTimeout() 882 if (!SymlinkPath(symlink_content, lock_path_)) { in Create() 939 UnlinkPath(lock_path_); in Cleanup() 957 ParseLockPath(lock_path_, &hostname, &pid); in KillProcessByLockPath() [all …]
|
D | process_singleton_mac_unittest.cc | 29 lock_path_ = temp_dir_.path().Append(chrome::kSingletonLockFilename); in SetUp() 42 int fd = HANDLE_EINTR(open(lock_path_.value().c_str(), O_RDONLY)); in IsLocked() 65 base::FilePath lock_path_; member in __anon9d0c0c490111::ProcessSingletonMacTest
|
D | process_singleton_mac.cc | 43 : lock_path_(user_data_dir.Append(chrome::kSingletonLockFilename)), in ProcessSingleton() 75 lock_fd_ = HANDLE_EINTR(open(lock_path_.value().c_str(), in Create()
|
D | process_singleton.h | 160 base::FilePath lock_path_; variable 174 base::FilePath lock_path_; variable
|