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

Unified Diff: chrome/browser/content_settings/content_settings_origin_identifier_value_map_unittest.cc

Issue 2318223002: Remove EmptyRuleIterators with nullptrs. (Closed)
Patch Set: Created 4 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
Index: chrome/browser/content_settings/content_settings_origin_identifier_value_map_unittest.cc
diff --git a/chrome/browser/content_settings/content_settings_origin_identifier_value_map_unittest.cc b/chrome/browser/content_settings/content_settings_origin_identifier_value_map_unittest.cc
index 7ac0d445d623252e2b7a363407b64b536939bf7e..5c56b1ccb70118ac3e84e904d6f14d608ada502d 100644
--- a/chrome/browser/content_settings/content_settings_origin_identifier_value_map_unittest.cc
+++ b/chrome/browser/content_settings/content_settings_origin_identifier_value_map_unittest.cc
@@ -174,8 +174,9 @@ TEST(OriginIdentifierValueMapTest, ListEntryPrecedences) {
TEST(OriginIdentifierValueMapTest, IterateEmpty) {
content_settings::OriginIdentifierValueMap map;
std::unique_ptr<content_settings::RuleIterator> rule_iterator(
- map.GetRuleIterator(CONTENT_SETTINGS_TYPE_COOKIES, std::string(), NULL));
- EXPECT_FALSE(rule_iterator->HasNext());
+ map.GetRuleIterator(CONTENT_SETTINGS_TYPE_COOKIES, std::string(),
+ nullptr));
+ EXPECT_FALSE(rule_iterator);
}
TEST(OriginIdentifierValueMapTest, IterateNonempty) {

Powered by Google App Engine
This is Rietveld 408576698