Home
last modified time | relevance | path

Searched refs:SafeBaseName (Results 1 – 8 of 8) sorted by relevance

/external/cronet/base/files/
Dsafe_base_name_unittest.cc12 absl::optional<SafeBaseName> basename(SafeBaseName::Create(FilePath())); in TEST()
16 absl::optional<SafeBaseName> basename2( in TEST()
17 SafeBaseName::Create(FILE_PATH_LITERAL("bar"))); in TEST()
24 absl::optional<SafeBaseName> basename( in TEST()
25 SafeBaseName::Create(FILE_PATH_LITERAL("C:\\foo\\bar"))); in TEST()
29 basename = SafeBaseName::Create(FILE_PATH_LITERAL("C:\\")); in TEST()
34 absl::optional<SafeBaseName> basename( in TEST()
35 SafeBaseName::Create(FilePath(FILE_PATH_LITERAL("/")))); in TEST()
41 absl::optional<SafeBaseName> basename( in TEST()
42 SafeBaseName::Create(FILE_PATH_LITERAL("/foo/bar"))); in TEST()
[all …]
Dsafe_base_name.cc10 absl::optional<SafeBaseName> SafeBaseName::Create(const FilePath& path) { in Create()
15 return absl::make_optional(SafeBaseName(basename)); in Create()
22 absl::optional<SafeBaseName> SafeBaseName::Create( in Create()
27 SafeBaseName::SafeBaseName(const FilePath& path) : path_(path) {} in SafeBaseName() function in base::SafeBaseName
29 bool SafeBaseName::operator==(const SafeBaseName& that) const { in operator ==()
Dsafe_base_name.h22 class BASE_EXPORT SafeBaseName {
25 SafeBaseName() = default;
28 static absl::optional<SafeBaseName> Create(const FilePath&);
31 static absl::optional<SafeBaseName> Create(FilePath::StringPieceType);
34 bool operator==(const SafeBaseName& that) const;
38 explicit SafeBaseName(const FilePath&);
Dfile_path.h149 class SafeBaseName; variable
358 [[nodiscard]] FilePath Append(const SafeBaseName& component) const;
Dfile_path.cc564 FilePath FilePath::Append(const SafeBaseName& component) const { in Append()
Dfile_path_unittest.cc1328 auto file(SafeBaseName::Create(FPL("bar.txt"))); in TEST_F()
/external/cronet/net/disk_cache/
Dcache_util.cc34 const base::SafeBaseName& basename, in GetPrefixedName()
43 const base::SafeBaseName& basename) { in GetTempCacheName()
55 const absl::optional<base::SafeBaseName> basename = in CleanupTemporaryDirectories()
56 base::SafeBaseName::Create(path); in CleanupTemporaryDirectories()
68 const absl::optional<base::SafeBaseName> basename = in MoveDirectoryToTemporaryDirectory()
69 base::SafeBaseName::Create(path); in MoveDirectoryToTemporaryDirectory()
Dcache_util_unittest.cc127 absl::optional<base::SafeBaseName> basename = in TEST_F()
128 base::SafeBaseName::Create(path); in TEST_F()