Searched refs:CanSeeMe (Results 1 – 3 of 3) sorted by relevance
/third_party/gn/src/gn/ |
D | visibility_unittest.cc | 12 TEST(Visibility, CanSeeMe) { in TEST() argument 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 …]
|
D | visibility.cc | 56 bool Visibility::CanSeeMe(const Label& label) const { in CanSeeMe() function in Visibility 94 if (!to->visibility().CanSeeMe(from->label())) { in CheckItemVisibility()
|
D | visibility.h | 46 bool CanSeeMe(const Label& label) const;
|