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

Side by Side Diff: chrome/test/mini_installer/verifier.py

Issue 1069003002: Test app launcher registration in test_installer rather than InstallationValidator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oh, python Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/test/mini_installer/variable_expander.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 class Verifier: 6 class Verifier:
7 """Verifies that the current machine states match the expectation.""" 7 """Verifies that the current machine states match the expectation."""
8 8
9 def VerifyInput(self, verifier_input, variable_expander): 9 def VerifyInput(self, verifier_input, variable_expander):
10 """Verifies that the current machine states match |verifier_input|. 10 """Verifies that the current machine states match |verifier_input|.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 def _EvaluateCondition(self, condition): 43 def _EvaluateCondition(self, condition):
44 """Evaluates |condition| using eval(). 44 """Evaluates |condition| using eval().
45 45
46 Args: 46 Args:
47 condition: A condition string. 47 condition: A condition string.
48 48
49 Returns: 49 Returns:
50 The result of the evaluated condition. 50 The result of the evaluated condition.
51 """ 51 """
52 return eval(condition, {'__builtins__': None}, None) 52 return eval(condition, {'__builtins__': {'False': False, 'True': True}})
OLDNEW
« no previous file with comments | « chrome/test/mini_installer/variable_expander.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698