Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Unified Diff: tools/gn/visibility_unittest.cc

Issue 552843005: Convert GN visibility to be a list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/visibility.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/visibility_unittest.cc
diff --git a/tools/gn/visibility_unittest.cc b/tools/gn/visibility_unittest.cc
index 76e6b0a2215c186c6ded01c071aba3e53f9fe046..8be2db67facbcc6683806c5f730904e7bf4430a8 100644
--- a/tools/gn/visibility_unittest.cc
+++ b/tools/gn/visibility_unittest.cc
@@ -33,7 +33,10 @@ TEST(Visibility, CanSeeMe) {
TEST(Visibility, Public) {
Err err;
Visibility vis;
- ASSERT_TRUE(vis.Set(SourceDir("//"), Value(NULL, "*"), &err));
+
+ Value list(NULL, Value::LIST);
+ list.list_value().push_back(Value(NULL, "*"));
+ ASSERT_TRUE(vis.Set(SourceDir("//"), list, &err));
EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//random/"), "thing")));
EXPECT_TRUE(vis.CanSeeMe(Label(SourceDir("//"), "")));
« no previous file with comments | « tools/gn/visibility.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698