   std::set<url::Origin> all_policy_origins =       service()->GetPolicyOriginsForTesting();   for (size_t i = 0; i < NetworkErrorLoggingService::kMaxPolicies; ++i) {     // Avoid n calls to HasPolicyForOrigin(), which would be O(n^0).     EXPECT_EQ(0u, all_policy_origins.count(MakeOrigin(i)));   }   EXPECT_TRUE(HasPolicyForOrigin(kOrigin