| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright (c) 2012 Google Inc. All rights reserved. | 3 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """Unit tests for the MSVSSettings.py file.""" | 7 """Unit tests for the MSVSSettings.py file.""" |
| 8 | 8 |
| 9 import StringIO | 9 import StringIO |
| 10 import unittest | 10 import unittest |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 'UseFullPaths': 'true', | 102 'UseFullPaths': 'true', |
| 103 'UsePrecompiledHeader': '1', | 103 'UsePrecompiledHeader': '1', |
| 104 'UseUnicodeResponseFiles': 'true', | 104 'UseUnicodeResponseFiles': 'true', |
| 105 'WarnAsError': 'true', | 105 'WarnAsError': 'true', |
| 106 'WarningLevel': '1', | 106 'WarningLevel': '1', |
| 107 'WholeProgramOptimization': 'true', | 107 'WholeProgramOptimization': 'true', |
| 108 'XMLDocumentationFileName': 'a_file_name', | 108 'XMLDocumentationFileName': 'a_file_name', |
| 109 'ZZXYZ': 'bogus'}, | 109 'ZZXYZ': 'bogus'}, |
| 110 'VCLinkerTool': { | 110 'VCLinkerTool': { |
| 111 'AdditionalDependencies': 'file1;file2', | 111 'AdditionalDependencies': 'file1;file2', |
| 112 'AdditionalDependencies_excluded': 'file3', |
| 112 'AdditionalLibraryDirectories': 'folder1;folder2', | 113 'AdditionalLibraryDirectories': 'folder1;folder2', |
| 113 'AdditionalManifestDependencies': 'file1;file2', | 114 'AdditionalManifestDependencies': 'file1;file2', |
| 114 'AdditionalOptions': 'a string1', | 115 'AdditionalOptions': 'a string1', |
| 115 'AddModuleNamesToAssembly': 'file1;file2', | 116 'AddModuleNamesToAssembly': 'file1;file2', |
| 116 'AllowIsolation': 'true', | 117 'AllowIsolation': 'true', |
| 117 'AssemblyDebug': '2', | 118 'AssemblyDebug': '2', |
| 118 'AssemblyLinkResource': 'file1;file2', | 119 'AssemblyLinkResource': 'file1;file2', |
| 119 'BaseAddress': 'a string1', | 120 'BaseAddress': 'a string1', |
| 120 'CLRImageType': '2', | 121 'CLRImageType': '2', |
| 121 'CLRThreadAttribute': '2', | 122 'CLRThreadAttribute': '2', |
| (...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1473 } | 1474 } |
| 1474 actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings( | 1475 actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings( |
| 1475 msvs_settings, | 1476 msvs_settings, |
| 1476 self.stderr) | 1477 self.stderr) |
| 1477 self.assertEqual(expected_msbuild_settings, actual_msbuild_settings) | 1478 self.assertEqual(expected_msbuild_settings, actual_msbuild_settings) |
| 1478 self._ExpectedWarnings([]) | 1479 self._ExpectedWarnings([]) |
| 1479 | 1480 |
| 1480 | 1481 |
| 1481 if __name__ == '__main__': | 1482 if __name__ == '__main__': |
| 1482 unittest.main() | 1483 unittest.main() |
| OLD | NEW |