CanSeeMe 239 tools/gn/visibility.cc if (!to->visibility().CanSeeMe(from->label())) { CanSeeMe 69 tools/gn/visibility.h bool CanSeeMe(const Label& label) const; CanSeeMe 66 tools/gn/visibility_unittest.cc TEST(Visibility, CanSeeMe) { CanSeeMe 76 tools/gn/visibility_unittest.cc EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//random/"), "thing"))); CanSeeMe 77 tools/gn/visibility_unittest.cc EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//my/"), "notname"))); CanSeeMe 79 tools/gn/visibility_unittest.cc EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//my/"), "name"))); CanSeeMe 80 tools/gn/visibility_unittest.cc EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//rec/"), "anything"))); CanSeeMe 81 tools/gn/visibility_unittest.cc EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//rec/a/"), "anything"))); CanSeeMe 82 tools/gn/visibility_unittest.cc EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//rec/b/"), "anything"))); CanSeeMe 83 tools/gn/visibility_unittest.cc EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//dir/"), "anything"))); CanSeeMe 84 tools/gn/visibility_unittest.cc EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//dir/a/"), "anything"))); CanSeeMe 85 tools/gn/visibility_unittest.cc EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//directory/"), "anything"))); CanSeeMe 93 tools/gn/visibility_unittest.cc EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//random/"), "thing"))); CanSeeMe 94 tools/gn/visibility_unittest.cc EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//"), ""))); CanSeeMe 102 tools/gn/visibility_unittest.cc EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//random/"), "thing"))); CanSeeMe 103 tools/gn/visibility_unittest.cc EXPECT_FALSE(vis.CanSeeMe(Label(SourceDir("//"), "")));