Home
last modified time | relevance | path

Searched refs:temp_dir (Results 1 – 14 of 14) sorted by relevance

/system/connectivity/shill/
Dcrypto_provider_unittest.cc70 ScopedTempDir temp_dir; in TEST_F() local
71 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
72 provider_.set_key_matter_file(InitKeyMatterFile(temp_dir.path())); in TEST_F()
91 ScopedTempDir temp_dir; in TEST_F() local
92 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
93 provider_.set_key_matter_file(InitKeyMatterFile(temp_dir.path())); in TEST_F()
102 ScopedTempDir temp_dir; in TEST_F() local
103 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
104 provider_.set_key_matter_file(InitKeyMatterFile(temp_dir.path())); in TEST_F()
Dfile_reader_unittest.cc57 base::ScopedTempDir temp_dir; in TEST_F() local
58 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
60 ASSERT_TRUE(base::CreateTemporaryFileInDir(temp_dir.path(), &path)); in TEST_F()
76 base::ScopedTempDir temp_dir; in TEST_F() local
77 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
79 ASSERT_TRUE(base::CreateTemporaryFileInDir(temp_dir.path(), &path)); in TEST_F()
Dsocket_info_reader_unittest.cc114 ScopedTempDir temp_dir; in TEST_F() local
115 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
116 CreateSocketInfoFile(kIPv4SocketInfoLines, 2, temp_dir.path(), &v4_path); in TEST_F()
117 CreateSocketInfoFile(kIPv6SocketInfoLines, 2, temp_dir.path(), &v6_path); in TEST_F()
176 ScopedTempDir temp_dir; in TEST_F() local
177 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
179 CreateSocketInfoFile(kIPv4SocketInfoLines, 1, temp_dir.path(), &file_path); in TEST_F()
217 temp_dir.path(), &file_path); in TEST_F()
224 temp_dir.path(), &file_path); in TEST_F()
Dcrypto_des_cbc_unittest.cc57 base::ScopedTempDir temp_dir; in TEST_F() local
58 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
60 FilePath key_matter = temp_dir.path().Append(kKeyMatterFile); in TEST_F()
Dpending_activation_store_unittest.cc52 base::ScopedTempDir temp_dir; in TEST_F() local
53 EXPECT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
55 EXPECT_TRUE(store_.InitStorage(temp_dir.path())); in TEST_F()
124 EXPECT_TRUE(store_.InitStorage(temp_dir.path())); in TEST_F()
162 EXPECT_TRUE(store_.InitStorage(temp_dir.path())); in TEST_F()
Dconnection_info_reader_unittest.cc107 ScopedTempDir temp_dir; in TEST_F() local
108 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
116 CreateConnectionInfoFile(kConnectionInfoLines, 0, temp_dir.path(), in TEST_F()
125 temp_dir.path(), in TEST_F()
Dmanager_unittest.cc234 bool CreateBackingStoreForService(ScopedTempDir* temp_dir, in CreateBackingStoreForService() argument
241 temp_dir->path(), in CreateBackingStoreForService()
943 ScopedTempDir temp_dir; in TEST_F() local
944 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
951 temp_dir.path().value()); in TEST_F()
969 ASSERT_TRUE(base::CreateDirectory(temp_dir.path().Append("user"))); in TEST_F()
980 ScopedTempDir temp_dir; in TEST_F() local
981 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
987 temp_dir.path().value()); in TEST_F()
1011 ASSERT_TRUE(base::CreateDirectory(temp_dir.path().Append("user"))); in TEST_F()
[all …]
Ddevice_info_unittest.cc1016 base::ScopedTempDir temp_dir; in TEST_F() local
1017 EXPECT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
1018 EXPECT_TRUE(base::CreateDirectory(temp_dir.path().Append("child1"))); in TEST_F()
1019 FilePath child2 = temp_dir.path().Append("child2"); in TEST_F()
1024 EXPECT_TRUE(DeviceInfo::HasSubdir(temp_dir.path(), in TEST_F()
1026 EXPECT_TRUE(DeviceInfo::HasSubdir(temp_dir.path(), in TEST_F()
1028 EXPECT_FALSE(DeviceInfo::HasSubdir(temp_dir.path(), in TEST_F()
/system/webservd/webservd/
Dlog_manager_unittest.cc45 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in SetUp()
62 base::FileEnumerator enumerator{temp_dir.path(), in GetLogFiles()
74 base::ScopedTempDir temp_dir; member in webservd::LogManagerTest
96 LogManager::Init(temp_dir.path()); in TEST_F()
122 LogManager::Init(temp_dir.path()); in TEST_F()
133 base::FilePath current_file = temp_dir.path().Append("2015-02-26.log"); in TEST_F()
/system/connectivity/shill/dhcp/
Ddhcp_provider_unittest.cc82 ScopedTempDir temp_dir; in TEST_F() local
84 EXPECT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
85 provider_->root_ = temp_dir.path(); in TEST_F()
/system/update_engine/common/
Dutils_unittest.cc92 string temp_dir; in TEST() local
93 EXPECT_TRUE(utils::MakeTempDirectory("symlink-test.XXXXXX", &temp_dir)); in TEST()
94 string temp_file = temp_dir + "/temp-file"; in TEST()
96 string temp_symlink = temp_dir + "/temp-symlink"; in TEST()
98 EXPECT_FALSE(utils::IsSymlink(temp_dir.c_str())); in TEST()
102 EXPECT_TRUE(base::DeleteFile(base::FilePath(temp_dir), true)); in TEST()
Dutils.cc145 base::FilePath temp_dir; in GetTempName() local
147 temp_dir = base::FilePath(constants::kNonVolatileDirectory).Append("tmp"); in GetTempName()
148 if (!base::PathExists(temp_dir)) in GetTempName()
149 TEST_AND_RETURN_FALSE(base::CreateDirectory(temp_dir)); in GetTempName()
151 TEST_AND_RETURN_FALSE(base::GetTempDir(&temp_dir)); in GetTempName()
153 *template_path = temp_dir.Append(path); in GetTempName()
/system/connectivity/shill/vpn/
Dl2tp_ipsec_driver_unittest.cc312 const FilePath temp_dir(temp_dir_.path()); in TEST_F() local
315 .WillOnce(ReturnRef(temp_dir)) in TEST_F()
316 .WillOnce(ReturnRef(temp_dir)); in TEST_F()
337 const FilePath temp_dir(temp_dir_.path()); in TEST_F() local
340 .WillOnce(ReturnRef(temp_dir)); in TEST_F()
414 const FilePath temp_dir(temp_dir_.path()); in TEST_F() local
417 .WillOnce(ReturnRef(temp_dir)); in TEST_F()
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc752 string temp_dir; in TEST_F() local
754 &temp_dir)); in TEST_F()
755 string non_existing_file = temp_dir + "/non-existing"; in TEST_F()
756 string existing_file = temp_dir + "/existing"; in TEST_F()
804 EXPECT_TRUE(base::DeleteFile(base::FilePath(temp_dir), true)); in TEST_F()