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

Side by Side Diff: visual_studio/NativeClientVSAddIn/UnitTests/CompileParallelTest.cs

Issue 12207169: [VS Addin] Fix typo in test code for parallel builds. (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698