| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 | 6 |
| 7 import os | 7 import os |
| 8 import sys | 8 import sys |
| 9 import unittest | 9 import unittest |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 sample = {'factory_properties': {'gclient_env': { 'GYP_DEFINES' : | 77 sample = {'factory_properties': {'gclient_env': { 'GYP_DEFINES' : |
| 78 'tiger=1 buffalo=0 giraffe' }}} | 78 'tiger=1 buffalo=0 giraffe' }}} |
| 79 self.assertTrue(slave_utils.GypFlagIsOn(sample, 'tiger')) | 79 self.assertTrue(slave_utils.GypFlagIsOn(sample, 'tiger')) |
| 80 self.assertFalse(slave_utils.GypFlagIsOn(sample, 'buffalo')) | 80 self.assertFalse(slave_utils.GypFlagIsOn(sample, 'buffalo')) |
| 81 self.assertTrue(slave_utils.GypFlagIsOn(sample, 'giraffe')) | 81 self.assertTrue(slave_utils.GypFlagIsOn(sample, 'giraffe')) |
| 82 self.assertFalse(slave_utils.GypFlagIsOn(sample, 'monkey')) | 82 self.assertFalse(slave_utils.GypFlagIsOn(sample, 'monkey')) |
| 83 | 83 |
| 84 | 84 |
| 85 if __name__ == '__main__': | 85 if __name__ == '__main__': |
| 86 unittest.main() | 86 unittest.main() |
| OLD | NEW |