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 | 8 |
9 using EnvDTE; | 9 using EnvDTE; |
10 using EnvDTE80; | 10 using EnvDTE80; |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 /// <param name="naclSolution">Path to the solution file to verify.</param> | 230 /// <param name="naclSolution">Path to the solution file to verify.</param> |
231 private void VerifyDefaultPepperSettings(string naclSolution) | 231 private void VerifyDefaultPepperSettings(string naclSolution) |
232 { | 232 { |
233 OpenSolutionAndGetProperties(naclSolution, NativeClientVSAddIn.Strings.Pep
perPlatformName); | 233 OpenSolutionAndGetProperties(naclSolution, NativeClientVSAddIn.Strings.Pep
perPlatformName); |
234 | 234 |
235 string page; | 235 string page; |
236 | 236 |
237 // General | 237 // General |
238 page = "ConfigurationGeneral"; | 238 page = "ConfigurationGeneral"; |
239 AllConfigsAssertPropertyEquals(page, "OutDir", @"$(ProjectDir)win\", true)
; | 239 AllConfigsAssertPropertyEquals(page, "OutDir", @"$(ProjectDir)win\", true)
; |
240 AllConfigsAssertPropertyEquals(page, "IntDir", @"$(ProjectDir)win\$(Config
uration)\", true); | 240 AllConfigsAssertPropertyEquals(page, "IntDir", @"win\$(Configuration)\", t
rue); |
241 AllConfigsAssertPropertyEquals(page, "TargetExt", ".dll", true); | 241 AllConfigsAssertPropertyEquals(page, "TargetExt", ".dll", true); |
242 AllConfigsAssertPropertyEquals(page, "ConfigurationType", "DynamicLibrary"
, true); | 242 AllConfigsAssertPropertyEquals(page, "ConfigurationType", "DynamicLibrary"
, true); |
243 AllConfigsAssertPropertyEquals(page, "VSNaClSDKRoot", @"$(NACL_SDK_ROOT)\"
, false); | 243 AllConfigsAssertPropertyEquals(page, "VSNaClSDKRoot", @"$(NACL_SDK_ROOT)\"
, false); |
244 AllConfigsAssertPropertyEquals(page, "NaClWebServerPort", "5103", false); | 244 AllConfigsAssertPropertyEquals(page, "NaClWebServerPort", "5103", false); |
245 AllConfigsAssertPropertyEquals(page, "CharacterSet", "Unicode", false); | 245 AllConfigsAssertPropertyEquals(page, "CharacterSet", "Unicode", false); |
246 AllConfigsAssertPropertyIsNotNullOrEmpty(page, "NaClAddInVersion"); | 246 AllConfigsAssertPropertyIsNotNullOrEmpty(page, "NaClAddInVersion"); |
247 | 247 |
248 // Debugging | 248 // Debugging |
249 page = "WindowsLocalDebugger"; | 249 page = "WindowsLocalDebugger"; |
250 string chromePath = System.Environment.GetEnvironmentVariable( | 250 string chromePath = System.Environment.GetEnvironmentVariable( |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 private void VerifyDefaultNaClSettings(string naclSolution) | 318 private void VerifyDefaultNaClSettings(string naclSolution) |
319 { | 319 { |
320 OpenSolutionAndGetProperties(naclSolution, NativeClientVSAddIn.Strings.NaC
lPlatformName); | 320 OpenSolutionAndGetProperties(naclSolution, NativeClientVSAddIn.Strings.NaC
lPlatformName); |
321 | 321 |
322 string page; | 322 string page; |
323 | 323 |
324 // General | 324 // General |
325 page = "ConfigurationGeneral"; | 325 page = "ConfigurationGeneral"; |
326 AllConfigsAssertPropertyEquals(page, "OutDir", @"$(ProjectDir)$(ToolchainN
ame)\", true); | 326 AllConfigsAssertPropertyEquals(page, "OutDir", @"$(ProjectDir)$(ToolchainN
ame)\", true); |
327 AllConfigsAssertPropertyEquals( | 327 AllConfigsAssertPropertyEquals( |
328 page, "IntDir", @"$(ProjectDir)$(ToolchainName)\$(Configuration)\", tr
ue); | 328 page, "IntDir", @"$(ToolchainName)\$(Configuration)\", true); |
329 AllConfigsAssertPropertyEquals(page, "ToolchainName", "newlib", true); | 329 AllConfigsAssertPropertyEquals(page, "ToolchainName", "newlib", true); |
330 AllConfigsAssertPropertyEquals(page, "PlatformToolset", "win_x86_$(Toolcha
inName)", true); | |
331 AllConfigsAssertPropertyEquals(page, "TargetArchitecture", "x86_64", true)
; | 330 AllConfigsAssertPropertyEquals(page, "TargetArchitecture", "x86_64", true)
; |
332 AllConfigsAssertPropertyEquals(page, "VSNaClSDKRoot", @"$(NACL_SDK_ROOT)\"
, false); | 331 AllConfigsAssertPropertyEquals(page, "VSNaClSDKRoot", @"$(NACL_SDK_ROOT)\"
, false); |
333 AllConfigsAssertPropertyEquals(page, "NaClManifestPath", string.Empty, fal
se); | 332 AllConfigsAssertPropertyEquals(page, "NaClManifestPath", string.Empty, fal
se); |
334 AllConfigsAssertPropertyEquals( | 333 AllConfigsAssertPropertyEquals( |
335 page, "NaClIrtPath", @"$(VSNaClSDKRoot)\tools\irt_x86_64.nexe", false)
; | 334 page, "NaClIrtPath", @"$(VSNaClSDKRoot)\tools\irt_x86_64.nexe", false)
; |
336 AllConfigsAssertPropertyEquals(page, "NaClWebServerPort", "5103", false); | 335 AllConfigsAssertPropertyEquals(page, "NaClWebServerPort", "5103", false); |
337 AllConfigsAssertPropertyIsNotNullOrEmpty(page, "NaClAddInVersion"); | 336 AllConfigsAssertPropertyIsNotNullOrEmpty(page, "NaClAddInVersion"); |
338 | 337 |
339 // Debugging | 338 // Debugging |
340 page = "WindowsLocalDebugger"; | 339 page = "WindowsLocalDebugger"; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 debug_, | 515 debug_, |
517 pageName, | 516 pageName, |
518 propertyName); | 517 propertyName); |
519 TestUtilities.AssertPropertyIsNotNullOrEmpty( | 518 TestUtilities.AssertPropertyIsNotNullOrEmpty( |
520 release_, | 519 release_, |
521 pageName, | 520 pageName, |
522 propertyName); | 521 propertyName); |
523 } | 522 } |
524 } | 523 } |
525 } | 524 } |
OLD | NEW |