OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 4 |
5 namespace UnitTests | 5 namespace UnitTests |
6 { | 6 { |
7 using System; | 7 using System; |
8 using System.IO; | 8 using System.IO; |
9 | 9 |
10 using EnvDTE; | 10 using EnvDTE; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 Path.GetDirectoryName(naclSolution), | 191 Path.GetDirectoryName(naclSolution), |
192 Path.GetDirectoryName(TestUtilities.BlankNaClProjectUniqueName)) + @"\
"; | 192 Path.GetDirectoryName(TestUtilities.BlankNaClProjectUniqueName)) + @"\
"; |
193 string outputDir = Path.Combine(projectDir, "newlib") + @"\"; | 193 string outputDir = Path.Combine(projectDir, "newlib") + @"\"; |
194 string assembly = Path.Combine(outputDir, TestUtilities.BlankNaClProjectNa
me + ".nexe"); | 194 string assembly = Path.Combine(outputDir, TestUtilities.BlankNaClProjectNa
me + ".nexe"); |
195 | 195 |
196 Assert.AreEqual(expectedSDKRootDir, target.SDKRootDirectory, "SDK Root."); | 196 Assert.AreEqual(expectedSDKRootDir, target.SDKRootDirectory, "SDK Root."); |
197 Assert.AreEqual(projectDir, target.ProjectDirectory, "ProjectDirectory."); | 197 Assert.AreEqual(projectDir, target.ProjectDirectory, "ProjectDirectory."); |
198 Assert.AreEqual(outputDir, target.OutputDirectory, "OutputDirectory."); | 198 Assert.AreEqual(outputDir, target.OutputDirectory, "OutputDirectory."); |
199 Assert.AreEqual(assembly, target.PluginAssembly, "PluginAssembly."); | 199 Assert.AreEqual(assembly, target.PluginAssembly, "PluginAssembly."); |
200 Assert.AreEqual( | 200 Assert.AreEqual( |
201 @"win_x86_newlib", | 201 @"newlib", |
202 target.GetProperty("ConfigurationGeneral", "PlatformToolset"), | 202 target.GetProperty("ConfigurationGeneral", "ToolchainName"), |
203 "GetProperty() with PlatformToolset incorrect."); | 203 "GetProperty() with ToolchainName incorrect."); |
204 } | 204 } |
205 | 205 |
206 /// <summary> | 206 /// <summary> |
207 /// A test for SetProperty. | 207 /// A test for SetProperty. |
208 /// </summary> | 208 /// </summary> |
209 [TestMethod] | 209 [TestMethod] |
210 public void SetPropertyTest() | 210 public void SetPropertyTest() |
211 { | 211 { |
212 string setTargetSolution = TestUtilities.CreateBlankValidNaClSolution( | 212 string setTargetSolution = TestUtilities.CreateBlankValidNaClSolution( |
213 dte_, | 213 dte_, |
(...skipping 14 matching lines...) Expand all Loading... |
228 | 228 |
229 string newValue = "ThisIsNew"; | 229 string newValue = "ThisIsNew"; |
230 target.SetProperty("ConfigurationGeneral", "VSNaClSDKRoot", newValue); | 230 target.SetProperty("ConfigurationGeneral", "VSNaClSDKRoot", newValue); |
231 Assert.AreEqual( | 231 Assert.AreEqual( |
232 newValue, | 232 newValue, |
233 target.GetProperty("ConfigurationGeneral", "VSNaClSDKRoot"), | 233 target.GetProperty("ConfigurationGeneral", "VSNaClSDKRoot"), |
234 "SetProperty() did not set property VSNaClSDKRoot."); | 234 "SetProperty() did not set property VSNaClSDKRoot."); |
235 } | 235 } |
236 } | 236 } |
237 } | 237 } |
OLD | NEW |