components/safe_browsing/content/resources/gen_file_type_proto.py
def ValidatePb(self, opts, pb):
        """ Validate the basic values of the protobuf.  The
        file_type_policies_unittest.cc will also validate it by platform,
        but this will catch errors earlier.
    """
        assert pb.version_id > 0
        assert pb.sampled_ping_probability >= 0.0
        assert pb.sampled_ping_probability <= 1.0
        assert len(pb.default_file_type.platform_settings) >= 1
        assert len(pb.file_types) > 1
 Validate the basic values of the protobuf.  The
        file_type_policies_unittest.cc will also validate it by platform,
        but this will catch errors earlier.
    
Validate the basic values of the protobuf.  The
file_type_policies_unittest.cc will also validate it by platform,
but this will catch errors earlier.
Validate the basic values of the protobuf . The file_type_policies_unittest . cc will also validate it by platform but this will catch errors earlier .
def ValidatePb(self, opts, pb):
        assert pb.version_id > 0
        assert pb.sampled_ping_probability >= 0.0
        assert pb.sampled_ping_probability <= 1.0
        assert len(pb.default_file_type.platform_settings) >= 1
        assert len(pb.file_types) > 1
def ValidatePb ( self , opts , pb ) : assert pb . version_id > 0 assert pb . sampled_ping_probability >= 0.0 assert pb . sampled_ping_probability <= 1.0 assert len ( pb . default_file_type . platform_settings ) >= 1 assert len ( pb . file_types ) > 1
Validate the basic values of the protobuf.
Validate the basic values of the protobuf .
""" Validate the basic values of the protobuf.  The
        file_type_policies_unittest.cc will also validate it by platform,
        but this will catch errors earlier.
    """
self
opts
pb