1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6 import process_verifier
7 import registry_verifier
11 """Runs all Verifiers."""
15 # TODO(sukolsak): Implement other verifiers
17 'Files': file_verifier.FileVerifier(),
18 'Processes': process_verifier.ProcessVerifier(),
19 'RegistryEntries': registry_verifier.RegistryVerifier(),
22 def VerifyAll(self, property, variable_expander):
23 """Verifies that the current machine states match the property dictionary.
25 A property dictionary is a dictionary where each key is a verifier's name
26 and the associated value is the input to that verifier. For details about
27 the input format for each verifier, take a look at http://goo.gl/1P85WL
30 property: A property dictionary.
31 variable_expander: A VariableExpander object.
33 for verifier_name, verifier_input in property.iteritems():
34 if verifier_name not in self._verifiers:
35 raise KeyError('Unknown verifier %s' % verifier_name)
36 self._verifiers[verifier_name].VerifyInput(verifier_input,