Home
last modified time | relevance | path

Searched refs:GetPath (Results 1 – 25 of 210) sorted by relevance

123456789

/external/libchrome/base/files/
Dfile_enumerator_unittest.cc68 RunEnumerator(temp_dir.GetPath(), true, in TEST()
79 const FilePath& path = temp_dir.GetPath(); in TEST()
85 temp_dir.GetPath(), true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
94 const FilePath& path = temp_dir.GetPath(); in TEST()
108 const FilePath& path = temp_dir.GetPath(); in TEST()
127 const FilePath& path = temp_dir.GetPath(); in TEST()
156 const FilePath& path = temp_dir.GetPath(); in TEST()
172 const FilePath& path = temp_dir.GetPath(); in TEST()
180 EXPECT_THAT(files, ElementsAre(temp_subdir.GetPath())); in TEST()
188 const FilePath& path = temp_dir.GetPath(); in TEST()
[all …]
Dfile_util_unittest.cc344 FilePath file_01 = temp_dir_.GetPath().Append(FPL("The file 01.txt")); in TEST_F()
350 FilePath subdir_path = temp_dir_.GetPath().Append(FPL("Level2")); in TEST_F()
365 int64_t computed_size = ComputeDirectorySize(temp_dir_.GetPath()); in TEST_F()
372 FilePath file_a_path = temp_dir_.GetPath().Append(FPL("file_a")); in TEST_F()
373 FilePath dir_path = temp_dir_.GetPath().Append(FPL("dir")); in TEST_F()
414 FilePath base_a = temp_dir_.GetPath().Append(FPL("base_a")); in TEST_F()
457 FilePath base_b = temp_dir_.GetPath().Append(FPL("base_b")); in TEST_F()
525 ToUpperASCII(temp_dir_.GetPath().value().substr(0, 2)); in TEST_F()
599 FilePath long_test_dir = temp_dir_.GetPath().Append(kLongDirName); in TEST_F()
646 FilePath link_from = temp_dir_.GetPath().Append(FPL("from_file")); in TEST_F()
[all …]
Dfile_path_watcher_unittest.cc172 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest"); in test_file()
176 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest.lnk"); in test_link()
253 FilePath source_file(temp_dir_.GetPath().AppendASCII("source")); in TEST_F()
339 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F()
363 FilePath path(temp_dir_.GetPath()); in TEST_F()
376 FilePath sub_path(temp_dir_.GetPath()); in TEST_F()
398 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F()
427 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F()
460 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F()
461 FilePath dest(temp_dir_.GetPath().AppendASCII("dest")); in TEST_F()
[all …]
Dfile_unittest.cc24 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST()
98 file_path = temp_dir.GetPath().AppendASCII("create_file_2"); in TEST()
113 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST()
123 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file"); in TEST()
141 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST()
168 FilePath file_path = temp_dir.GetPath().AppendASCII("read_write_file"); in TEST()
252 FilePath nonexistent_path(temp_dir.GetPath().AppendASCII("nonexistent")); in TEST()
263 FilePath file_path = temp_dir.GetPath().AppendASCII("append_file"); in TEST()
315 FilePath file_path = temp_dir.GetPath().AppendASCII("truncate_file"); in TEST()
374 File file(temp_dir.GetPath().AppendASCII("touch_get_info_file"),
[all …]
/external/cronet/components/metrics/structured/
Dpersistent_proto_unittest.cc56 base::FilePath GetPath() { return temp_dir_.GetPath().Append("proto"); } in GetPath() function in metrics::structured::PersistentProtoTest
59 base::DeleteFile(GetPath()); in ClearDisk()
60 ASSERT_FALSE(base::PathExists(GetPath())); in ClearDisk()
66 CHECK(base::ReadFileToString(GetPath(), &proto_str)); in ReadFromDisk()
73 ASSERT_TRUE(base::WriteFile(GetPath(), proto.SerializeAsString())); in WriteToDisk()
111 PersistentProto<KeyProto> pproto(GetPath(), WriteDelay(), ReadCallback(), in TEST_F()
120 PersistentProto<KeyProto> pproto(GetPath(), WriteDelay(), ReadCallback(), in TEST_F()
133 PersistentProto<KeyProto> pproto(GetPath(), WriteDelay(), ReadCallback(), in TEST_F()
143 PersistentProto<KeyProto> pproto(GetPath(), WriteDelay(), ReadCallback(), in TEST_F()
164 ASSERT_TRUE(base::WriteFile(GetPath(), "this isn't a valid proto")); in TEST_F()
[all …]
Dexternal_metrics_unittest.cc76 temp_dir_.GetPath(), one_hour, in Init()
92 CHECK(base::WriteFile(temp_dir_.GetPath().Append(name), in WriteToDisk()
97 CHECK(base::WriteFile(temp_dir_.GetPath().Append(name), str)); in WriteToDisk()
122 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
145 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
154 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
177 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
226 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
252 ASSERT_TRUE(base::IsDirectoryEmpty(temp_dir_.GetPath())); in TEST_F()
Dkey_data_unittest.cc78 base::DeleteFile(GetPath()); in ResetState()
79 ASSERT_FALSE(base::PathExists(GetPath())); in ResetState()
82 base::FilePath GetPath() { return temp_dir_.GetPath().Append("keys"); } in GetPath() function in metrics::structured::KeyDataTest
85 key_data_ = std::make_unique<KeyData>(GetPath(), base::Seconds(0), in MakeKeyData()
93 ASSERT_TRUE(base::PathExists(GetPath())); in SaveKeyData()
102 CHECK(base::ReadFileToString(GetPath(), &proto_str)); in GetKey()
126 ASSERT_TRUE(base::WriteFile(GetPath(), proto.SerializeAsString())); in SetupKey()
/external/cronet/components/metrics/
Dfile_metrics_provider_unittest.cc122 base::FilePath temp_dir() { return temp_dir_.GetPath(); } in temp_dir()
124 return temp_dir_.GetPath().AppendASCII(kMetricsFilename); in metrics_file()
473 WriteMetricsFileAtTime(metrics_files.GetPath().AppendASCII(".foo.pma"), in TEST_P()
475 WriteMetricsFileAtTime(metrics_files.GetPath().AppendASCII("_bar.pma"), in TEST_P()
480 WriteMetricsFileAtTime(metrics_files.GetPath().AppendASCII("a1.pma"), in TEST_P()
485 WriteMetricsFileAtTime(metrics_files.GetPath().AppendASCII("c2.pma"), in TEST_P()
490 WriteMetricsFileAtTime(metrics_files.GetPath().AppendASCII("b3.pma"), in TEST_P()
495 WriteMetricsFileAtTime(metrics_files.GetPath().AppendASCII("d4.pma"), in TEST_P()
498 base::TouchFile(metrics_files.GetPath().AppendASCII("b3.pma"), in TEST_P()
501 WriteMetricsFileAtTime(metrics_files.GetPath().AppendASCII("baz"), allocator, in TEST_P()
[all …]
Dclean_exit_beacon_unittest.cc207 const base::FilePath user_data_dir_path = user_data_dir_.GetPath(); in TEST_P()
225 const base::FilePath user_data_dir_path = user_data_dir_.GetPath(); in TEST_F()
247 const base::FilePath user_data_dir_path = user_data_dir_.GetPath(); in TEST_F()
268 const base::FilePath user_data_dir_path = user_data_dir_.GetPath(); in TEST_F()
311 const base::FilePath user_data_dir_path = user_data_dir_.GetPath(); in TEST_F()
357 TestCleanExitBeacon clean_exit_beacon(&prefs_, user_data_dir_.GetPath()); in TEST_F()
416 const base::FilePath user_data_dir_path = user_data_dir_.GetPath(); in TEST_P()
/external/cronet/base/files/
Dfile_enumerator_unittest.cc125 const FilePath file_path = temp_dir.GetPath().Append(file.path); in SetUpTestFiles()
151 RunEnumerator(temp_dir.GetPath(), true, in TEST()
162 const FilePath& path = temp_dir.GetPath(); in TEST()
168 temp_dir.GetPath(), true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
177 const FilePath& path = temp_dir.GetPath(); in TEST()
191 const FilePath& path = temp_dir.GetPath(); in TEST()
210 const FilePath& path = temp_dir.GetPath(); in TEST()
239 const FilePath& path = temp_dir.GetPath(); in TEST()
255 const FilePath& path = temp_dir.GetPath(); in TEST()
263 EXPECT_THAT(files, ElementsAre(temp_subdir.GetPath())); in TEST()
[all …]
Dfile_util_unittest.cc429 const FilePath temp_dir_path = temp_dir_.GetPath(); in TEST_F()
442 FilePath file_01 = temp_dir_.GetPath().Append(FPL("The file 01.txt")); in TEST_F()
448 FilePath subdir_path = temp_dir_.GetPath().Append(FPL("Level2")); in TEST_F()
463 int64_t computed_size = ComputeDirectorySize(temp_dir_.GetPath()); in TEST_F()
470 FilePath file_a_path = temp_dir_.GetPath().Append(FPL("file_a")); in TEST_F()
471 FilePath dir_path = temp_dir_.GetPath().Append(FPL("dir")); in TEST_F()
502 FilePath file_a_path = temp_dir_.GetPath().Append(FPL("file_empty_a")); in TEST_F()
503 FilePath dir_path = temp_dir_.GetPath().Append(FPL("dir")); in TEST_F()
542 FilePath base_a = temp_dir_.GetPath().Append(FPL("base_a")); in TEST_F()
589 FilePath base_b = temp_dir_.GetPath().Append(FPL("base_b")); in TEST_F()
[all …]
Dfile_path_watcher_unittest.cc194 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest"); in test_file()
198 return temp_dir_.GetPath().AppendASCII("FilePathWatcherTest.lnk"); in test_link()
282 FilePath source_file(temp_dir_.GetPath().AppendASCII("source")); in TEST_F()
373 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F()
398 FilePath path(temp_dir_.GetPath()); in TEST_F()
412 FilePath sub_path(temp_dir_.GetPath()); in TEST_F()
430 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F()
461 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F()
495 FilePath dir(temp_dir_.GetPath().AppendASCII("dir")); in TEST_F()
496 FilePath dest(temp_dir_.GetPath().AppendASCII("dest")); in TEST_F()
[all …]
Dfile_unittest.cc38 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST()
112 file_path = temp_dir.GetPath().AppendASCII("create_file_2"); in TEST()
127 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST()
137 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file"); in TEST()
155 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST()
181 FilePath file_path = temp_dir.GetPath().AppendASCII("read_write_file"); in TEST()
265 FilePath nonexistent_path(temp_dir.GetPath().AppendASCII("nonexistent")); in TEST()
276 FilePath file_path = temp_dir.GetPath().AppendASCII("append_file"); in TEST()
328 FilePath file_path = temp_dir.GetPath().AppendASCII("truncate_file"); in TEST()
396 File file(temp_dir.GetPath().AppendASCII("touch_get_info_file"),
[all …]
Dscoped_temp_dir_unittest.cc60 test_path = dir.GetPath(); in TEST()
88 test_path = dir.GetPath(); in TEST()
114 FilePath dir_path = dir.GetPath(); in TEST()
118 EXPECT_EQ(dir_path, other_dir.GetPath()); in TEST()
129 File file(dir.GetPath().Append(FILE_PATH_LITERAL("temp")), in TEST()
134 EXPECT_FALSE(dir.GetPath().empty()); // We should still have a valid path. in TEST()
/external/libbrillo/policy/tests/
Dresilient_policy_util_test.cc34 base::FilePath file0(temp_dir.GetPath().Append("policy")); in TEST()
35 base::FilePath file1(temp_dir.GetPath().Append("policy.12")); in TEST()
36 base::FilePath file2(temp_dir.GetPath().Append("policy.2")); in TEST()
37 base::FilePath file3(temp_dir.GetPath().Append("policy.30")); in TEST()
38 base::FilePath invalid(temp_dir.GetPath().Append("policy_4")); in TEST()
46 temp_dir.GetPath().Append(kDefaultResilientPolicyFilePath)); in TEST()
/external/libbrillo/brillo/
Dfile_utils_test.cc47 file_path_ = temp_dir_.GetPath().Append("test.temp"); in FileUtilsTest()
78 return temp_dir_.GetPath().Append(GetRandomSuffix()); in GetTempName()
97 file_path_ = temp_dir_.GetPath().Append("foo/bar/baz/test.temp"); in TEST_F()
116 base::FilePath symlink_target = temp_dir_.GetPath().Append("target.temp"); in TEST_F()
190 EXPECT_TRUE(base::SetPosixFilePermissions(temp_dir_.GetPath(), 0707)); in TEST_F()
193 MkdirRecursively(temp_dir_.GetPath().Append("a/b/c"), kPermissions755) in TEST_F()
196 EXPECT_TRUE(base::DirectoryExists(temp_dir_.GetPath().Append("a"))); in TEST_F()
197 EXPECT_TRUE(base::DirectoryExists(temp_dir_.GetPath().Append("a/b"))); in TEST_F()
198 EXPECT_TRUE(base::DirectoryExists(temp_dir_.GetPath().Append("a/b/c"))); in TEST_F()
203 base::GetPosixFilePermissions(temp_dir_.GetPath().Append("a"), &mode)); in TEST_F()
[all …]
Dosrelease_reader_test.cc19 osreleased_ = temp_dir_.GetPath().Append("etc").Append("os-release.d"); in SetUp()
20 osrelease_ = temp_dir_.GetPath().Append("etc").Append("os-release"); in SetUp()
31 store_.LoadTestingOnly(temp_dir_.GetPath()); in TEST_F()
36 store_.LoadTestingOnly(temp_dir_.GetPath()); in TEST_F()
49 store_.LoadTestingOnly(temp_dir_.GetPath()); in TEST_F()
83 store_.LoadTestingOnly(temp_dir_.GetPath()); in TEST_F()
Dscoped_umask_test.cc42 CheckFilePermissions(tmpdir.GetPath().AppendASCII("file1.txt"), in TEST()
48 CheckFilePermissions(tmpdir.GetPath().AppendASCII("file2.txt"), in TEST()
53 CheckFilePermissions(tmpdir.GetPath().AppendASCII("file3.txt"), in TEST()
/external/libbrillo/brillo/files/
Dfile_util_test.cc56 sub_dir_path_ = temp_dir_.GetPath().Append(kSubdirName); in FileTest()
59 std::string path = temp_dir_.GetPath().value(); in FileTest()
61 temp_dir_path_.assign(temp_dir_.GetPath().value().begin(), in FileTest()
62 temp_dir_.GetPath().value().end()); in FileTest()
86 symlink_file_path_ = temp_dir_.GetPath().Append(kSymbolicFileName); in SetupSymlinks()
87 symlink_dir_path_ = temp_dir_.GetPath().Append(kSymbolicDirName); in SetupSymlinks()
93 if (!base::CreateSymbolicLink(temp_dir_.GetPath(), symlink_dir_path_)) { in SetupSymlinks()
133 return temp_dir_.GetPath().Append(GetRandomSuffix()); in GetTempName()
144 EXPECT_EQ(GetFDPath(root_.get()), temp_dir_.GetPath()); in TEST_F()
156 std::tie(dir, err) = root_.OpenExistingDir(temp_dir_.GetPath()); in TEST_F()
[all …]
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DTestCredentials.cs43 return GetPath("data/ca.pem");
51 return GetPath("data/server1.pem");
59 return GetPath("data/server1.key");
76 private static string GetPath(string relativePath) in GetPath() method in Grpc.IntegrationTesting.TestCredentials
/external/cronet/net/disk_cache/simple/
Dsimple_version_upgrade_unittest.cc49 const base::FilePath cache_path = cache_dir.GetPath(); in TEST()
62 cache_dir.GetPath())); in TEST()
68 const base::FilePath cache_path = cache_dir.GetPath(); in TEST()
84 cache_dir.GetPath())); in TEST()
90 const base::FilePath cache_path = cache_dir.GetPath(); in TEST()
117 const base::FilePath cache_path = cache_dir.GetPath(); in TEST()
164 const base::FilePath cache_path = cache_dir.GetPath(); in TEST()
185 const base::FilePath cache_path = cache_dir.GetPath(); in TEST()
/external/cronet/base/fuchsia/
Dfile_utils_unittest.cc24 auto dir = OpenDirectoryHandle(temp_dir.GetPath()); in TEST_F()
32 OpenDirectoryHandle(temp_dir.GetPath().AppendASCII("non_existent")); in TEST_F()
38 auto file_path = temp_dir.GetPath().AppendASCII("test_file"); in TEST_F()
/external/cronet/net/base/
Ddirectory_lister_unittest.cc138 directories.emplace_back(temp_root_dir_.GetPath(), 0); in SetUp()
149 if (dir_data.first == temp_root_dir_.GetPath()) in SetUp()
158 if (dir_data.first == temp_root_dir_.GetPath()) in SetUp()
167 const base::FilePath& root_path() const { return temp_root_dir_.GetPath(); } in root_path()
216 DirectoryLister lister(tempDir.GetPath(), &delegate); in TEST_F()
267 DirectoryLister lister(tempDir.GetPath(), &delegate); in TEST_F()
282 tempDir.GetPath().AppendASCII("this_path_does_not_exist"), &delegate); in TEST_F()
/external/cronet/base/win/
Dshortcut_unittest.cc34 link_file_ = temp_dir_.GetPath().Append(FILE_PATH_LITERAL("My Link.lnk")); in SetUp()
39 temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Target 1.txt"))); in SetUp()
43 link_properties_.set_working_dir(temp_dir_.GetPath()); in SetUp()
62 temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Target 2.txt"))); in SetUp()
66 CreateTemporaryFileInDir(temp_dir_.GetPath(), &icon_path_2); in SetUp()
69 link_properties_2_.set_working_dir(temp_dir_2_.GetPath()); in SetUp()
97 FilePath file_1(temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Link1.lnk"))); in TEST_F()
119 FilePath file_2(temp_dir_.GetPath().Append(FILE_PATH_LITERAL("Link2.lnk"))); in TEST_F()
/external/libchrome/base/
Dpath_service_unittest.cc134 FilePath fake_cache_dir(temp_dir.GetPath().AppendASCII("cache")); in TEST_F()
140 FilePath fake_cache_dir2(temp_dir.GetPath().AppendASCII("cache2")); in TEST_F()
155 MakeAbsoluteFilePath(temp_dir.GetPath()).AppendASCII("non_existent")); in TEST_F()
186 FilePath fake_cache_dir1(temp_dir.GetPath().AppendASCII("1")); in TEST_F()
191 FilePath fake_cache_dir2(temp_dir.GetPath().AppendASCII("2")); in TEST_F()
216 EXPECT_TRUE(PathService::Override(DIR_TEMP, temp_dir.GetPath())); in TEST_F()

123456789