/external/chromium_org/tools/gn/ |
H A D | visibility_unittest.cc | 19 ASSERT_TRUE(vis.Set(SourceDir("//"), list, &err)); 21 EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//random/"), "thing"))); 22 EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//my/"), "notname"))); 24 EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//my/"), "name"))); 25 EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//rec/"), "anything"))); 26 EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//rec/a/"), "anything"))); 27 EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//rec/b/"), "anything"))); 28 EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//dir/"), "anything"))); 29 EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//dir/a/"), "anything"))); 30 EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//director [all...] |
H A D | source_dir_unittest.cc | 9 TEST(SourceDir, ResolveRelativeFile) { 10 SourceDir base("//base/"); 38 TEST(SourceDir, ResolveRelativeDir) { 39 SourceDir base("//base/"); 42 EXPECT_TRUE(base.ResolveRelativeDir("") == SourceDir()); 45 EXPECT_TRUE(base.ResolveRelativeDir("//foo") == SourceDir("//foo/")); 46 EXPECT_TRUE(base.ResolveRelativeDir("/foo") == SourceDir("/foo/")); 49 EXPECT_TRUE(base.ResolveRelativeDir("foo") == SourceDir("//base/foo/")); 50 EXPECT_TRUE(base.ResolveRelativeDir("./foo") == SourceDir("//base/foo/")); 51 EXPECT_TRUE(base.ResolveRelativeDir("../foo") == SourceDir("//fo [all...] |
H A D | source_dir.h | 25 class SourceDir { class 29 SourceDir(); 30 explicit SourceDir(const base::StringPiece& p); 33 SourceDir(SwapIn, std::string* s); 34 ~SourceDir(); 37 // an empty SourceDir/File on error. Empty input is always an error (it's 47 SourceDir ResolveRelativeDir( 84 bool operator==(const SourceDir& other) const { 87 bool operator!=(const SourceDir& other) const { 90 bool operator<(const SourceDir [all...] |
H A D | value_extractors.h | 17 class SourceDir; 29 const SourceDir& current_dir, 36 const SourceDir& current_dir, 37 std::vector<SourceDir>* dest, 43 const SourceDir& current_dir, 53 const SourceDir& current_dir, 58 const SourceDir& current_dir, 63 const SourceDir& current_dir, 70 const SourceDir& current_dir,
|
H A D | filesystem_utils_unittest.cc | 78 SourceDir empty; 81 SourceDir root("/"); 84 SourceDir srcroot("//"); 87 SourceDir regular1("//foo/"); 90 SourceDir regular2("//foo/bar/"); 95 SourceDir output_dir("//out/Debug/"); 173 EXPECT_TRUE(InvertDir(SourceDir()) == ""); 174 EXPECT_TRUE(InvertDir(SourceDir("/")) == ""); 175 EXPECT_TRUE(InvertDir(SourceDir("//")) == ""); 177 EXPECT_TRUE(InvertDir(SourceDir("//fo [all...] |
H A D | filesystem_utils.h | 83 base::StringPiece FindLastDirComponent(const SourceDir& dir); 94 bool EnsureStringIsInOutputDir(const SourceDir& dir, 122 std::string InvertDir(const SourceDir& dir); 134 const SourceDir& dest_dir); 141 std::string DirectoryWithNoLastSlash(const SourceDir& dir); 143 // Returns the "best" SourceDir representing the given path. If it's inside the 147 SourceDir SourceDirForPath(const base::FilePath& source_root, 150 // Like SourceDirForPath but returns the SourceDir representing the current 152 SourceDir SourceDirForCurrentDirectory(const base::FilePath& source_root); 163 SourceDir GetToolchainOutputDi [all...] |
H A D | config_values_extractors_unittest.cc | 22 void operator()(const SourceDir& dir, std::ostream& out) const { 38 Config dep2_all(setup.settings(), Label(SourceDir("//dep2/"), "all")); 40 dep2_all.config_values().include_dirs().push_back(SourceDir("//dep2/all/")); 42 Config dep2_direct(setup.settings(), Label(SourceDir("//dep2/"), "direct")); 45 SourceDir("//dep2/direct/")); 47 Target dep2(setup.settings(), Label(SourceDir("//dep2/"), "dep2")); 55 Config dep1_all(setup.settings(), Label(SourceDir("//dep1/"), "all")); 57 dep1_all.config_values().include_dirs().push_back(SourceDir("//dep1/all/")); 59 Config dep1_direct(setup.settings(), Label(SourceDir("//dep1/"), "direct")); 62 SourceDir("//dep [all...] |
H A D | label_pattern.h | 31 const SourceDir& dir, 38 static LabelPattern GetPattern(const SourceDir& current_dir, 50 const SourceDir& dir() const { return dir_; } 65 SourceDir dir_;
|
H A D | config_values_generator.h | 27 const SourceDir& input_dir, 37 const SourceDir input_dir_;
|
H A D | source_dir.cc | 22 SourceDir::SourceDir() { function in class:SourceDir 25 SourceDir::SourceDir(const base::StringPiece& p) function in class:SourceDir 32 SourceDir::SourceDir(SwapIn, std::string* s) { function in class:SourceDir 39 SourceDir::~SourceDir() { 42 SourceFile SourceDir::ResolveRelativeFile( 80 SourceDir SourceDi [all...] |
H A D | ninja_group_target_writer_unittest.cc | 14 setup.build_settings()->SetBuildDir(SourceDir("//out/Debug/")); 15 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); 20 Target dep(setup.settings(), Label(SourceDir("//foo/"), "dep")); 26 Target dep2(setup.settings(), Label(SourceDir("//foo/"), "dep2")); 32 Target datadep(setup.settings(), Label(SourceDir("//foo/"), "datadep"));
|
H A D | path_output_unittest.cc | 14 SourceDir build_dir("//out/Debug/"); 55 SourceDir build_dir("//"); 72 SourceDir build_dir("//out/Debug/"); 89 SourceDir build_dir("//out/Debug/"); 142 SourceDir build_dir("//out/Debug/"); 165 SourceDir build_dir("//out/Debug/"); 169 writer.WriteDir(out, SourceDir("//foo/bar/"), 175 writer.WriteDir(out, SourceDir("//foo/bar/"), 183 writer.WriteDir(out, SourceDir("//"), 189 writer.WriteDir(out, SourceDir("//"), [all...] |
H A D | build_settings.h | 45 void SetSecondarySourcePath(const SourceDir& d); 57 const SourceDir& build_dir() const { return build_dir_; } 58 void SetBuildDir(const SourceDir& dir); 73 base::FilePath GetFullPath(const SourceDir& dir) const; 79 base::FilePath GetFullPathSecondary(const SourceDir& dir) const; 101 SourceDir build_dir_;
|
H A D | label.h | 24 Label(const SourceDir& dir, 26 const SourceDir& toolchain_dir, 30 Label(const SourceDir& dir, const base::StringPiece& name); 36 static Label Resolve(const SourceDir& current_dir, 43 const SourceDir& dir() const { return dir_; } 46 const SourceDir& toolchain_dir() const { return toolchain_dir_; } 101 SourceDir dir_; 104 SourceDir toolchain_dir_;
|
H A D | value_extractors.cc | 65 const SourceDir& current_dir_in) 84 const SourceDir& current_dir; 89 const SourceDir& current_dir_in) 93 bool operator()(const Value& v, SourceDir* out, Err* err) const { 101 const SourceDir& current_dir; 106 LabelResolver(const SourceDir& current_dir_in, 116 const SourceDir& current_dir; 122 LabelPtrResolver(const SourceDir& current_dir_in, 133 const SourceDir& current_dir; 156 const SourceDir [all...] |
H A D | build_settings.cc | 33 void BuildSettings::SetSecondarySourcePath(const SourceDir& d) { 37 void BuildSettings::SetBuildDir(const SourceDir& d) { 46 base::FilePath BuildSettings::GetFullPath(const SourceDir& dir) const { 56 const SourceDir& dir) const {
|
H A D | config_values.h | 25 const std::vector<SourceDir>& name() const { return name##_; } \ 26 std::vector<SourceDir>& name() { return name##_; } 49 std::vector<SourceDir> include_dirs_; 51 std::vector<SourceDir> lib_dirs_;
|
H A D | ninja_copy_target_writer_unittest.cc | 19 setup.build_settings()->SetBuildDir(SourceDir("//out/Debug/")); 20 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); 51 setup.build_settings()->SetBuildDir(SourceDir("//out/Debug/")); 52 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar"));
|
H A D | path_output.h | 36 PathOutput(const SourceDir& current_dir, EscapingMode escaping); 42 const SourceDir& current_dir() const { return current_dir_; } 60 const SourceDir& dir, 77 SourceDir current_dir_;
|
H A D | settings.h | 73 const SourceDir& toolchain_output_dir() const { 78 const SourceDir& toolchain_gen_dir() const { 120 SourceDir toolchain_output_dir_; 122 SourceDir toolchain_gen_dir_;
|
H A D | input_file.h | 29 const SourceDir& dir() const { return dir_; } 54 SourceDir dir_;
|
H A D | output_file.cc | 32 SourceDir OutputFile::AsSourceDir(const BuildSettings* build_settings) const { 38 return SourceDir(build_settings->build_dir().value() + value_);
|
H A D | settings.cc | 25 toolchain_output_dir_ = SourceDir(build_settings->build_dir().value() + 31 toolchain_gen_dir_ = SourceDir(toolchain_output_dir_.value() + "gen/");
|
H A D | visibility.h | 29 bool Set(const SourceDir& current_dir, const Value& value, Err* err); 35 void SetPrivate(const SourceDir& current_dir);
|
H A D | config_values_generator.cc | 35 const SourceDir input_dir, 36 std::vector<SourceDir>& (ConfigValues::* accessor)(), 42 std::vector<SourceDir> result; 53 const SourceDir& input_dir,
|