Home
last modified time | relevance | path

Searched refs:SourceDir (Results 1 – 25 of 119) sorted by relevance

12345

/third_party/gn/src/gn/
Dfilesystem_utils_unittest.cc84 SourceDir empty; in TEST()
87 SourceDir root("/"); in TEST()
90 SourceDir srcroot("//"); in TEST()
93 SourceDir regular1("//foo/"); in TEST()
96 SourceDir regular2("//foo/bar/"); in TEST()
101 SourceDir output_dir("//out/Debug/"); in TEST()
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()
[all …]
Dvisibility_unittest.cc20 ASSERT_TRUE(vis.Set(SourceDir("//"), std::string_view(), list, &err)); in TEST()
22 EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//random/"), "thing"))); in TEST()
23 EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//my/"), "notname"))); in TEST()
25 EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//my/"), "name"))); in TEST()
26 EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//rec/"), "anything"))); in TEST()
27 EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//rec/a/"), "anything"))); in TEST()
28 EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//rec/b/"), "anything"))); in TEST()
29 EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//dir/"), "anything"))); in TEST()
30 EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//dir/a/"), "anything"))); in TEST()
31 EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//directory/"), "anything"))); in TEST()
[all …]
Dsource_dir_unittest.cc12 TEST(SourceDir, ResolveRelativeFile) { in TEST() argument
14 SourceDir base("//base/"); in TEST()
115 TEST(SourceDir, ResolveRelativeDir) { in TEST() argument
117 SourceDir base("//base/"); in TEST()
126 source_root) == SourceDir()); in TEST()
132 source_root) == SourceDir("//foo/")); in TEST()
135 source_root) == SourceDir("/foo/")); in TEST()
140 source_root) == SourceDir("//base/foo/")); in TEST()
143 source_root) == SourceDir("//base/foo/")); in TEST()
146 source_root) == SourceDir("//foo/")); in TEST()
[all …]
Dconfig_values_extractors_unittest.cc22 void operator()(const SourceDir& dir, std::ostream& out) const { in operator ()()
38 Config dep2_all(setup.settings(), Label(SourceDir("//dep2/"), "all")); in TEST()
42 dep2_all.own_values().include_dirs().push_back(SourceDir("//dep2/all/")); in TEST()
43 dep2_all.own_values().include_dirs().push_back(SourceDir("//dep2/all/")); in TEST()
46 Config dep2_direct(setup.settings(), Label(SourceDir("//dep2/"), "direct")); in TEST()
50 SourceDir("//dep2/direct/")); in TEST()
53 Target dep2(setup.settings(), Label(SourceDir("//dep2/"), "dep2")); in TEST()
62 Config dep1_all_sub(setup.settings(), Label(SourceDir("//dep1"), "allch")); in TEST()
67 Config dep1_all(setup.settings(), Label(SourceDir("//dep1/"), "all")); in TEST()
70 dep1_all.own_values().include_dirs().push_back(SourceDir("//dep1/all/")); in TEST()
[all …]
Dvalue_extractors.h19 class SourceDir; variable
31 const SourceDir& current_dir,
39 const SourceDir& current_dir,
46 const SourceDir& current_dir,
47 std::vector<SourceDir>* dest,
54 const SourceDir& current_dir,
65 const SourceDir& current_dir,
71 const SourceDir& current_dir,
77 const SourceDir& current_dir,
84 const SourceDir& current_dir,
[all …]
Dvalue_extractors.cc66 const SourceDir& current_dir_in) in RelativeFileConverter()
74 const SourceDir& current_dir;
79 const SourceDir& current_dir_in) in LibFileConverter()
98 const SourceDir& current_dir;
103 const SourceDir& current_dir_in) in RelativeDirConverter()
105 bool operator()(const Value& v, SourceDir* out, Err* err) const { in operator ()()
111 const SourceDir& current_dir;
116 const SourceDir& current_dir_in) in ExternConverter()
150 const SourceDir& current_dir;
157 const SourceDir& current_dir_in, in LabelResolver()
[all …]
Dpath_output_unittest.cc16 SourceDir build_dir("//out/Debug/"); in TEST()
58 SourceDir build_dir("//"); in TEST()
76 SourceDir build_dir("//out/Debug/"); in TEST()
94 SourceDir build_dir("//out/Debug/"); in TEST()
147 SourceDir build_dir("//out/Debug/"); in TEST()
171 SourceDir build_dir("//out/Debug/"); in TEST()
176 writer.WriteDir(out, SourceDir("//foo/bar/"), in TEST()
182 writer.WriteDir(out, SourceDir("//foo/bar/"), in TEST()
190 writer.WriteDir(out, SourceDir("//"), PathOutput::DIR_INCLUDE_LAST_SLASH); in TEST()
195 writer.WriteDir(out, SourceDir("//"), PathOutput::DIR_NO_LAST_SLASH); in TEST()
[all …]
Dbundle_data.h75 SourceDir GetBundleRootDirOutputAsDir(const Settings* settings) const;
78 SourceDir GetBundleDir(const Settings* settings) const;
94 SourceDir& root_dir() { return root_dir_; } in root_dir()
95 const SourceDir& root_dir() const { return root_dir_; } in root_dir()
97 SourceDir& contents_dir() { return contents_dir_; } in contents_dir()
98 const SourceDir& contents_dir() const { return contents_dir_; } in contents_dir()
100 SourceDir& resources_dir() { return resources_dir_; } in resources_dir()
101 const SourceDir& resources_dir() const { return resources_dir_; } in resources_dir()
103 SourceDir& executable_dir() { return executable_dir_; } in executable_dir()
104 const SourceDir& executable_dir() const { return executable_dir_; } in executable_dir()
[all …]
Dfilesystem_utils.h74 std::string_view FindLastDirComponent(const SourceDir& dir);
80 bool IsStringInOutputDir(const SourceDir& output_dir, const std::string& str);
89 bool EnsureStringIsInOutputDir(const SourceDir& output_dir,
151 const SourceDir& dest_dir,
183 std::string DirectoryWithNoLastSlash(const SourceDir& dir);
189 SourceDir SourceDirForPath(const base::FilePath& source_root,
194 SourceDir SourceDirForCurrentDirectory(const base::FilePath& source_root);
274 SourceDir GetBuildDirAsSourceDir(const BuildDirContext& context,
281 SourceDir GetSubBuildDirAsSourceDir(const BuildDirContext& context,
282 const SourceDir& source_dir,
[all …]
Dsource_dir.cc75 SourceDir::SourceDir(std::string_view s) : value_(SourceDirStringAtom(s)) {} in SourceDir() function in SourceDir
77 std::string SourceDir::ResolveRelativeAs(bool as_file, in ResolveRelativeAs()
88 SourceFile SourceDir::ResolveRelativeFile(const Value& p, in ResolveRelativeFile()
104 SourceDir SourceDir::ResolveRelativeDir(const Value& blame_input_value, in ResolveRelativeDir()
108 SourceDir ret; in ResolveRelativeDir()
114 std::string SourceDir::ResolveRelativeAs(bool as_file, in ResolveRelativeAs()
132 SourceDir SourceDir::ResolveRelativeDir(const Value& v, in ResolveRelativeDir()
136 return SourceDir(); in ResolveRelativeDir()
141 base::FilePath SourceDir::Resolve(const base::FilePath& source_root) const { in Resolve()
Dmetadata.h45 const SourceDir& source_dir() const { return source_dir_; } in source_dir()
46 SourceDir& source_dir() { return source_dir_; } in source_dir()
47 void set_source_dir(const SourceDir& d) { source_dir_ = d; } in set_source_dir()
57 const SourceDir& rebase_dir,
65 SourceDir source_dir_;
68 const SourceDir& rebase_dir,
73 const SourceDir& rebase_dir,
78 const SourceDir& rebase_dir,
83 const SourceDir& rebase_dir,
Dlabel.h28 Label(const SourceDir& dir,
30 const SourceDir& toolchain_dir,
34 Label(const SourceDir& dir, std::string_view name);
39 static Label Resolve(const SourceDir& current_dir,
47 const SourceDir& dir() const { return dir_; } in dir()
51 const SourceDir& toolchain_dir() const { return toolchain_dir_; } in toolchain_dir()
104 Label(SourceDir dir, StringAtom name) in Label()
107 Label(SourceDir dir, in Label()
109 SourceDir toolchain_dir, in Label()
125 SourceDir dir_;
[all …]
Dbuilder_unittest.cc78 build_settings_.SetBuildDir(SourceDir("//out/")); in BuilderTest()
79 settings_.set_toolchain_label(Label(SourceDir("//tc/"), "default")); in BuilderTest()
99 SourceDir toolchain_dir = settings_.toolchain_label().dir(); in TEST_F()
105 Label a_label(SourceDir("//a/"), "a", toolchain_dir, toolchain_name); in TEST_F()
106 Label b_label(SourceDir("//b/"), "b", toolchain_dir, toolchain_name); in TEST_F()
107 Label c_label(SourceDir("//c/"), "c", toolchain_dir, toolchain_name); in TEST_F()
190 SourceDir toolchain_dir = settings_.toolchain_label().dir(); in TEST_F()
200 Label a_label(SourceDir("//a/"), "a", toolchain_dir, toolchain_name); in TEST_F()
201 Label b_label(SourceDir("//b/"), "b", toolchain_dir, toolchain_name); in TEST_F()
202 Label c_label(SourceDir("//c/"), "c", toolchain_dir, toolchain_name); in TEST_F()
[all …]
Dsource_dir.h30 class SourceDir {
32 SourceDir() = default;
34 SourceDir(std::string_view s);
70 SourceDir ResolveRelativeDir(
78 SourceDir ResolveRelativeDir(
125 bool operator==(const SourceDir& other) const {
128 bool operator!=(const SourceDir& other) const { return !operator==(other); }
129 bool operator<(const SourceDir& other) const { return value_ < other.value_; }
141 struct hash<SourceDir> {
142 std::size_t operator()(const SourceDir& v) const { return v.hash(); }
Dinherited_libraries_unittest.cc24 Target a(setup.settings(), Label(SourceDir("//foo/"), "a")); in TEST()
25 Target b(setup.settings(), Label(SourceDir("//foo/"), "b")); in TEST()
64 Target a(setup.settings(), Label(SourceDir("//foo/"), "a")); in TEST()
65 Target b(setup.settings(), Label(SourceDir("//foo/"), "b")); in TEST()
66 Target w(setup.settings(), Label(SourceDir("//foo/"), "w")); in TEST()
67 Target x(setup.settings(), Label(SourceDir("//foo/"), "x")); in TEST()
68 Target y(setup.settings(), Label(SourceDir("//foo/"), "y")); in TEST()
69 Target z(setup.settings(), Label(SourceDir("//foo/"), "z")); in TEST()
114 Target set_pub(setup.settings(), Label(SourceDir("//foo/"), "set_pub")); in TEST()
117 Target set_priv(setup.settings(), Label(SourceDir("//foo/"), "set_priv")); in TEST()
[all …]
Dninja_c_binary_target_writer_unittest.cc26 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST_F()
69 Target shlib_target(setup.settings(), Label(SourceDir("//foo/"), "shlib")); in TEST_F()
105 Target stlib_target(setup.settings(), Label(SourceDir("//foo/"), "stlib")); in TEST_F()
310 Target action(setup.settings(), Label(SourceDir("//foo/"), "action")); in TEST_F()
317 Target target(setup.settings(), Label(SourceDir("//foo/"), "shlib")); in TEST_F()
320 target.set_output_dir(SourceDir("//out/Debug/foo/")); in TEST_F()
373 Target action(setup.settings(), Label(SourceDir("//foo/"), "generate")); in TEST_F()
377 action.set_output_dir(SourceDir("//out/Debug/foo/")); in TEST_F()
384 Target gen_obj(setup.settings(), Label(SourceDir("//foo/"), "gen_obj")); in TEST_F()
386 gen_obj.set_output_dir(SourceDir("//out/Debug/foo/")); in TEST_F()
[all …]
Druntime_deps_unittest.cc56 Target stat(setup.settings(), Label(SourceDir("//"), "stat")); in TEST_F()
61 Target shared(setup.settings(), Label(SourceDir("//"), "shared")); in TEST_F()
66 Target loadable(setup.settings(), Label(SourceDir("//"), "loadable")); in TEST_F()
71 Target set(setup.settings(), Label(SourceDir("//"), "set")); in TEST_F()
76 Target main(setup.settings(), Label(SourceDir("//"), "main")); in TEST_F()
128 Target final_in(setup.settings(), Label(SourceDir("//"), "final_in")); in TEST_F()
133 Target datadep(setup.settings(), Label(SourceDir("//"), "datadep")); in TEST_F()
138 Target final_out(setup.settings(), Label(SourceDir("//"), "final_out")); in TEST_F()
143 Target dep(setup.settings(), Label(SourceDir("//"), "dep")); in TEST_F()
148 Target main(setup.settings(), Label(SourceDir("//"), "main")); in TEST_F()
[all …]
Dninja_rust_binary_target_writer_unittest.cc22 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST_F()
36 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST_F()
90 Target private_rlib(setup.settings(), Label(SourceDir("//baz/"), "privatelib")); in TEST_F()
131 Label(SourceDir("//far/"), "farlib")); in TEST_F()
171 Target public_rlib(setup.settings(), Label(SourceDir("//bar/"), "publiclib")); in TEST_F()
212 Target rlib(setup.settings(), Label(SourceDir("//foo/"), "direct")); in TEST_F()
226 Target target(setup.settings(), Label(SourceDir("//main/"), "main")); in TEST_F()
277 Target private_inside_dylib(setup.settings(), Label(SourceDir("//faz/"), "private_inside")); in TEST_F()
317 Target inside_dylib(setup.settings(), Label(SourceDir("//baz/"), "inside")); in TEST_F()
357 Target dylib(setup.settings(), Label(SourceDir("//bar/"), "mylib")); in TEST_F()
[all …]
Dninja_create_bundle_target_writer_unittest.cc19 bundle_data->root_dir() = SourceDir(bundle_root_dir); in SetupBundleDataDir()
20 bundle_data->contents_dir() = SourceDir(bundle_root_dir + "/Contents"); in SetupBundleDataDir()
22 SourceDir(bundle_data->contents_dir().value() + "/Resources"); in SetupBundleDataDir()
24 SourceDir(bundle_data->contents_dir().value() + "/MacOS"); in SetupBundleDataDir()
30 Label(SourceDir("//foo/"), "bar")); in NewAction()
52 Target bundle_data(setup.settings(), Label(SourceDir("//foo/"), "data")); in TEST()
64 Label(SourceDir("//baz/"), "bar", setup.toolchain()->label().dir(), in TEST()
101 Target bundle_data(setup.settings(), Label(SourceDir("//foo/"), "data")); in TEST()
113 Label(SourceDir("//baz/"), "bar", setup.toolchain()->label().dir(), in TEST()
152 Label(SourceDir("//baz/"), "bar", setup.toolchain()->label().dir(), in TEST()
[all …]
Dninja_target_command_util_unittest.cc67 PathOutput ninja_path_output(SourceDir("//out"), "", ESCAPE_NINJA_COMMAND); in TEST()
75 {SourceDir("//out"), SourceDir("//out/Path With Spaces")}); in TEST()
77 PathOutput space_path_output(SourceDir("//out"), "", ESCAPE_SPACE); in TEST()
80 {SourceDir("//out"), SourceDir("//out/Path With Spaces")}); in TEST()
Dninja_action_target_writer_unittest.cc21 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
45 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
81 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
91 Label(SourceDir("//"), "console", setup.toolchain()->label().dir(), in TEST()
127 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
169 Target dep(setup.settings(), Label(SourceDir("//foo/"), "dep")); in TEST()
176 Label(SourceDir("//foo/"), "bundle_data_dep")); in TEST()
183 Target datadep(setup.settings(), Label(SourceDir("//foo/"), "datadep")); in TEST()
189 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
253 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
[all …]
Dconfig_unittest.cc15 Config config(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
34 Config sub1(setup.settings(), Label(SourceDir("//foo/"), "1")); in TEST()
38 Config sub2(setup.settings(), Label(SourceDir("//foo/"), "2")); in TEST()
42 Config config(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
66 Config last(setup.settings(), Label(SourceDir("//foo/"), "last")); in TEST()
70 Config middle(setup.settings(), Label(SourceDir("//foo/"), "middle")); in TEST()
75 Config first(setup.settings(), Label(SourceDir("//foo/"), "first")); in TEST()
Dheader_checker_unittest.cc21 : a_(setup_.settings(), Label(SourceDir("//a/"), "a")), in HeaderCheckerTest()
22 b_(setup_.settings(), Label(SourceDir("//b/"), "b")), in HeaderCheckerTest()
23 c_(setup_.settings(), Label(SourceDir("//c/"), "c")), in HeaderCheckerTest()
24 d_(setup_.settings(), Label(SourceDir("//d/"), "d")) { in HeaderCheckerTest()
88 Target p(setup_.settings(), Label(SourceDir("//p/"), "p")); in TEST_F()
178 Label(SourceDir("//toolchain/"), "other")); in TEST_F()
186 Label(SourceDir("//p/"), "otc", other_toolchain.label().dir(), in TEST_F()
248 Target z(setup_.settings(), Label(SourceDir("//a/"), "a")); in TEST_F()
319 const std::vector<SourceDir> kIncludeDirs = { in TEST_F()
320 SourceDir("/c/custom_include/"), SourceDir("//"), SourceDir("//subdir")}; in TEST_F()
[all …]
Dmetadata_unittest.cc37 metadata.set_source_dir(SourceDir("/usr/home/files/")); in TEST()
61 walk_keys, SourceDir(), &next_walk_keys, in TEST()
71 metadata.set_source_dir(SourceDir("/usr/home/files/")); in TEST()
95 walk_keys, SourceDir("/usr/foo_dir/"), in TEST()
105 metadata.set_source_dir(SourceDir("/usr/home/files/")); in TEST()
149 walk_keys, SourceDir("/usr/foo_dir/"), in TEST()
159 metadata.set_source_dir(SourceDir("/usr/home/files/")); in TEST()
178 walk_keys, SourceDir(), &next_walk_keys, in TEST()
188 metadata.set_source_dir(SourceDir("/usr/home/files/")); in TEST()
200 walk_keys, SourceDir(), &next_walk_keys, in TEST()
[all …]
Dbuild_settings.h52 void SetSecondarySourcePath(const SourceDir& d);
87 const SourceDir& build_dir() const { return build_dir_; } in build_dir()
88 void SetBuildDir(const SourceDir& dir);
97 base::FilePath GetFullPath(const SourceDir& dir) const;
107 base::FilePath GetFullPathSecondary(const SourceDir& dir) const;
150 SourceDir build_dir_;

12345