Searched refs:SafeBaseName (Results 1 – 8 of 8) sorted by relevance
12 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 …]
10 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::SafeBaseName29 bool SafeBaseName::operator==(const SafeBaseName& that) const { in operator ==()
22 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&);
149 class SafeBaseName; variable358 [[nodiscard]] FilePath Append(const SafeBaseName& component) const;
564 FilePath FilePath::Append(const SafeBaseName& component) const { in Append()
1328 auto file(SafeBaseName::Create(FPL("bar.txt"))); in TEST_F()
34 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()
127 absl::optional<base::SafeBaseName> basename = in TEST_F()128 base::SafeBaseName::Create(path); in TEST_F()