Index: chrome/test/mini_installer/verifier.py |
diff --git a/chrome/test/mini_installer/verifier.py b/chrome/test/mini_installer/verifier.py |
index 053096b4a807805a8f8d90a0445900cdb1ac5c6c..5ca22650682f61de5b0efe1c2a92678e56edbb11 100644 |
--- a/chrome/test/mini_installer/verifier.py |
+++ b/chrome/test/mini_installer/verifier.py |
@@ -50,3 +50,12 @@ class Verifier: |
The result of the evaluated condition. |
""" |
return eval(condition, {'__builtins__': {'False': False, 'True': True}}) |
+ |
+ def _Assert(self, is_true, message): |
+ """ Check whether the test result equals to the expectation. |
+ |
+ Args: |
+ is_true: A boolean represents whether the assert is success. |
+ message: The error message if assert failed. |
+ """ |
+ assert is_true, message |