/third_party/gn/src/gn/ |
D | filesystem_utils_unittest.cc | 426 TEST(FilesystemUtils, RebasePath) { in TEST() argument 430 EXPECT_EQ(".", RebasePath("//", SourceDir("//"), source_root)); in TEST() 432 RebasePath("//foo/bar/", SourceDir("//foo/bar/"), source_root)); in TEST() 435 EXPECT_EQ("../foo", RebasePath("//foo", SourceDir("//bar/"), source_root)); in TEST() 436 EXPECT_EQ("../foo/", RebasePath("//foo/", SourceDir("//bar/"), source_root)); in TEST() 438 RebasePath("//foo", SourceDir("//bar/moo"), source_root)); in TEST() 440 RebasePath("//foo/", SourceDir("//bar/moo"), source_root)); in TEST() 443 EXPECT_EQ("foo/bar", RebasePath("//foo/bar", SourceDir("//"), source_root)); in TEST() 444 EXPECT_EQ("foo/bar/", RebasePath("//foo/bar/", SourceDir("//"), source_root)); in TEST() 448 RebasePath("//foo/bar", SourceDir("//a/b/"), source_root)); in TEST() [all …]
|
D | function_rebase_path_unittest.cc | 33 TEST(RebasePath, Strings) { in TEST() argument 95 TEST(RebasePath, StringsSystemPaths) { in TEST() argument 151 TEST(RebasePath, List) { in TEST() argument 174 TEST(RebasePath, Errors) { in TEST() argument
|
D | xcode_writer.cc | 254 const std::string source_path = RebasePath( in AddXCTestFilesToTestModuleTarget() 345 return RebasePath("//", build_settings->build_dir()); in SourcePathFromBuildSettings() 653 const std::string source_file = RebasePath( in AddSourcesFromBuilder() 894 output_dir = RebasePath(output_dir, build_settings_->build_dir()); in AddBinaryTarget() 923 const std::string& target_output_name = RebasePath( in AddBundleTarget() 927 RebasePath(target->bundle_data().GetBundleDir(target->settings()).value(), in AddBundleTarget()
|
D | substitution_writer.cc | 367 return RebasePath(DirectoryWithNoLastSlash(source.GetDir()), in GetSourceSubstitution() 378 return RebasePath(source.value(), target->label().dir(), in GetSourceSubstitution() 397 return RebasePath(to_rebase, relative_to, in GetSourceSubstitution() 565 RebasePath(target->output_dir().value(), in GetLinkerSubstitution()
|
D | function_rebase_path.cc | 96 result.string_value() = RebasePath( in ConvertOnePath() 110 RebasePath(resolved_file.value(), to_dir, in ConvertOnePath()
|
D | output_file.cc | 16 : value_(RebasePath(source_file.value(), in OutputFile()
|
D | filesystem_utils.h | 150 std::string RebasePath(const std::string& input,
|
D | path_output.cc | 17 inverse_current_dir_ = RebasePath("//", current_dir, source_root); in PathOutput()
|
D | metadata.cc | 232 Value rebased_value(value.origin(), RebasePath(filename, rebase_dir, in RebaseStringValue()
|
D | runtime_deps.cc | 48 RebasePath(str, source->settings()->build_settings()->build_dir(), in AddIfNew()
|
D | visual_studio_writer.cc | 777 << ")\", \"" << RebasePath(folder->path, solution_dir) << "\", \"" in WriteSolutionFileContents() 784 << "\", \"" << RebasePath(project->path, solution_dir) << "\", \"" in WriteSolutionFileContents()
|
D | commands.cc | 252 RebasePath(output_as_source.value(), build_settings->build_dir(), in PrintTargetsAsOutputs()
|
D | filesystem_utils.cc | 707 std::string RebasePath(const std::string& input, in RebasePath() function
|
D | functions.cc | 1404 INSERT_FUNCTION(RebasePath, false) in FunctionInfoInitializer()
|