Lines Matching refs:visibility
181 const Visibility& visibility = result.value().entry->visibility;
182 if (visibility.level != level) {
183 return ::testing::AssertionFailure() << "expected visibility " << LevelToString(level)
184 << " but got " << LevelToString(visibility.level);
187 if (visibility.comment != comment) {
188 return ::testing::AssertionFailure() << "expected visibility comment '" << comment
189 << "' but got '" << visibility.comment << "'";
200 Visibility visibility;
201 visibility.level = Visibility::Level::kPrivate;
202 visibility.comment = "private";
203 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics()));
206 visibility.level = Visibility::Level::kUndefined;
207 visibility.comment = "undefined";
208 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics()));
211 visibility.level = Visibility::Level::kPublic;
212 visibility.comment = "public";
213 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics()));
216 visibility.level = Visibility::Level::kPrivate;
217 visibility.comment = "private";
218 ASSERT_TRUE(table.SetVisibility(name, visibility, test::GetDiagnostics()));