/external/libchrome/base/files/ |
D | file_enumerator_unittest.cc | 68 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 …]
|
D | file_util_unittest.cc | 344 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 …]
|
D | file_path_watcher_unittest.cc | 172 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 …]
|
D | file_unittest.cc | 24 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/ |
D | persistent_proto_unittest.cc | 56 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 …]
|
D | external_metrics_unittest.cc | 76 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()
|
D | key_data_unittest.cc | 78 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/ |
D | file_metrics_provider_unittest.cc | 122 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 …]
|
D | clean_exit_beacon_unittest.cc | 207 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/ |
D | file_enumerator_unittest.cc | 125 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 …]
|
D | file_util_unittest.cc | 429 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 …]
|
D | file_path_watcher_unittest.cc | 194 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 …]
|
D | file_unittest.cc | 38 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 …]
|
D | scoped_temp_dir_unittest.cc | 60 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/ |
D | resilient_policy_util_test.cc | 34 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/ |
D | file_utils_test.cc | 47 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 …]
|
D | osrelease_reader_test.cc | 19 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()
|
D | scoped_umask_test.cc | 42 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/ |
D | file_util_test.cc | 56 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/ |
D | TestCredentials.cs | 43 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/ |
D | simple_version_upgrade_unittest.cc | 49 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/ |
D | file_utils_unittest.cc | 24 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/ |
D | directory_lister_unittest.cc | 138 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/ |
D | shortcut_unittest.cc | 34 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/ |
D | path_service_unittest.cc | 134 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()
|