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

Side by Side Diff: pylib/gyp/MSVSSettings_test.py

Issue 1331463002: Make sure GYP supports compiling managed code. (Closed) Base URL: https://chromium.googlesource.com/external/gyp@master
Patch Set: Created 5 years, 3 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 | « pylib/gyp/MSVSSettings.py ('k') | pylib/gyp/msvs_emulation.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 'AdditionalUsingDirectories': 'folder1;folder2', 289 'AdditionalUsingDirectories': 'folder1;folder2',
290 'AssemblerListingLocation': 'a_file_name', 290 'AssemblerListingLocation': 'a_file_name',
291 'AssemblerOutput': 'NoListing', 291 'AssemblerOutput': 'NoListing',
292 'BasicRuntimeChecks': 'StackFrameRuntimeCheck', 292 'BasicRuntimeChecks': 'StackFrameRuntimeCheck',
293 'BrowseInformation': 'false', 293 'BrowseInformation': 'false',
294 'BrowseInformationFile': 'a_file_name', 294 'BrowseInformationFile': 'a_file_name',
295 'BufferSecurityCheck': 'true', 295 'BufferSecurityCheck': 'true',
296 'BuildingInIDE': 'true', 296 'BuildingInIDE': 'true',
297 'CallingConvention': 'Cdecl', 297 'CallingConvention': 'Cdecl',
298 'CompileAs': 'CompileAsC', 298 'CompileAs': 'CompileAsC',
299 'CompileAsManaged': 'Pure', 299 'CompileAsManaged': 'true',
300 'CreateHotpatchableImage': 'true', 300 'CreateHotpatchableImage': 'true',
301 'DebugInformationFormat': 'ProgramDatabase', 301 'DebugInformationFormat': 'ProgramDatabase',
302 'DisableLanguageExtensions': 'true', 302 'DisableLanguageExtensions': 'true',
303 'DisableSpecificWarnings': 'string1;string2', 303 'DisableSpecificWarnings': 'string1;string2',
304 'EnableEnhancedInstructionSet': 'StreamingSIMDExtensions', 304 'EnableEnhancedInstructionSet': 'StreamingSIMDExtensions',
305 'EnableFiberSafeOptimizations': 'true', 305 'EnableFiberSafeOptimizations': 'true',
306 'EnablePREfast': 'true', 306 'EnablePREfast': 'true',
307 'Enableprefast': 'bogus', 307 'Enableprefast': 'bogus',
308 'ErrorReporting': 'Prompt', 308 'ErrorReporting': 'Prompt',
309 'ExceptionHandling': 'SyncCThrow', 309 'ExceptionHandling': 'SyncCThrow',
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 } 1474 }
1475 actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings( 1475 actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
1476 msvs_settings, 1476 msvs_settings,
1477 self.stderr) 1477 self.stderr)
1478 self.assertEqual(expected_msbuild_settings, actual_msbuild_settings) 1478 self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
1479 self._ExpectedWarnings([]) 1479 self._ExpectedWarnings([])
1480 1480
1481 1481
1482 if __name__ == '__main__': 1482 if __name__ == '__main__':
1483 unittest.main() 1483 unittest.main()
OLDNEW
« no previous file with comments | « pylib/gyp/MSVSSettings.py ('k') | pylib/gyp/msvs_emulation.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698