OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 using System; | 4 using System; |
5 using System.Text; | 5 using System.Text; |
6 using System.Collections.Generic; | 6 using System.Collections.Generic; |
7 using EnvDTE; | 7 using EnvDTE; |
8 using EnvDTE80; | 8 using EnvDTE80; |
9 using Microsoft.VisualStudio.TestTools.UnitTesting; | 9 using Microsoft.VisualStudio.TestTools.UnitTesting; |
10 using Microsoft.VisualStudio.VCProjectEngine; | 10 using Microsoft.VisualStudio.VCProjectEngine; |
(...skipping 21 matching lines...) Expand all Loading... |
32 { | 32 { |
33 TestUtilities.CleanUpVisualStudioInstance(dte_); | 33 TestUtilities.CleanUpVisualStudioInstance(dte_); |
34 } | 34 } |
35 | 35 |
36 /// <summary> | 36 /// <summary> |
37 /// Test that parallel compilation works. | 37 /// Test that parallel compilation works. |
38 /// </summary> | 38 /// </summary> |
39 [TestMethod] | 39 [TestMethod] |
40 public void CheckParallelCompile() | 40 public void CheckParallelCompile() |
41 { | 41 { |
42 string platform = TestUtilities.NaClProjectUniqueName; | 42 string platform = Strings.NaCl64PlatformName; |
43 dte_.Solution.Open(SolutionName_); | 43 dte_.Solution.Open(SolutionName_); |
44 Project project = dte_.Solution.Projects.Item(platform); | 44 Project project = dte_.Solution.Projects.Item(TestUtilities.NaClProj
ectUniqueName); |
45 | 45 |
46 // Add property sheet that enables multiprocessing | 46 // Add property sheet that enables multiprocessing |
47 VCConfiguration config; | 47 VCConfiguration config; |
48 IVCRulePropertyStorage rule; | 48 IVCRulePropertyStorage rule; |
49 config = TestUtilities.GetVCConfiguration(project, "Debug", platform
); | 49 config = TestUtilities.GetVCConfiguration(project, "Debug", platform
); |
50 config.AddPropertySheet("multiprocess.props"); | 50 config.AddPropertySheet("multiprocess.props"); |
51 config = TestUtilities.GetVCConfiguration(project, "Release", platfo
rm); | 51 config = TestUtilities.GetVCConfiguration(project, "Release", platfo
rm); |
52 config.AddPropertySheet("multiprocess.props"); | 52 config.AddPropertySheet("multiprocess.props"); |
53 | 53 |
54 // Add a second file | 54 // Add a second file |
55 project.ProjectItems.AddFromFile("test_file.cpp"); | 55 project.ProjectItems.AddFromFile("test_file.cpp"); |
56 | 56 |
57 dte_.Solution.Close(true); | 57 dte_.Solution.Close(true); |
58 | 58 |
59 CheckCompile(Strings.NaCl64PlatformName, false); | 59 CheckCompile(platform, false); |
60 } | 60 } |
61 } | 61 } |
62 } | 62 } |
OLD | NEW |