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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
183 // NaCl inherit specific checks on the NaCl platform. | 183 // NaCl inherit specific checks on the NaCl platform. |
184 OpenSolutionAndGetProperties( | 184 OpenSolutionAndGetProperties( |
185 naclSolutionPepperInitialization, NativeClientVSAddIn.Strings.NaCl64Pl atformName); | 185 naclSolutionPepperInitialization, NativeClientVSAddIn.Strings.NaCl64Pl atformName); |
186 AllConfigsAssertPropertyEquals("ConfigurationGeneral", "TargetExt", ".nexe ", true); | 186 AllConfigsAssertPropertyEquals("ConfigurationGeneral", "TargetExt", ".nexe ", true); |
187 AllConfigsAssertPropertyEquals( | 187 AllConfigsAssertPropertyEquals( |
188 "ConfigurationGeneral", "ConfigurationType", "Application", true); | 188 "ConfigurationGeneral", "ConfigurationType", "Application", true); |
189 dte_.Solution.Close(); | 189 dte_.Solution.Close(); |
190 } | 190 } |
191 | 191 |
192 /// <summary> | 192 /// <summary> |
193 /// Test that setting a custom NaClSDKRoot correctly effects the default val ues for | |
194 /// things like IncludePath. This test is needed to protect against regress ions where | |
195 /// the order of the properties could cause NaClSDKRoot to not effect the de faults. | |
196 /// </summary> | |
197 [TestMethod] | |
198 public void OverrideSDKRoot() | |
199 { | |
200 string slnName = TestUtilities.CreateBlankValidNaClSolution( | |
201 dte_, | |
202 "OverrideSDKRoot", | |
203 NativeClientVSAddIn.Strings.PepperPlatformName, | |
204 NativeClientVSAddIn.Strings.PepperPlatformName, | |
205 TestContext); | |
206 | |
207 OpenSolutionAndGetProperties(slnName, NativeClientVSAddIn.Strings.Pepper PlatformName); | |
208 | |
209 // VC++ Directories | |
210 string page = "ConfigurationGeneral"; | |
211 IVCRulePropertyStorage pageStorage = debug_.Rules.Item(page); | |
212 pageStorage.SetPropertyValue("VSNaClSDKRoot", @"foo\"); | |
213 | |
214 page = "ConfigurationDirectories"; | |
215 TestUtilities.AssertPropertyContains(debug_, page, "IncludePath", @"foo\ include;", true, true); | |
binji
2012/10/23 00:59:32
nit: wrap all of these at 100 chars
| |
216 TestUtilities.AssertPropertyContains(debug_, page, "IncludePath", @"foo\ include\win;", true, true); | |
217 TestUtilities.AssertPropertyContains(debug_, page, "IncludePath", @"foo\ include", true, true); | |
218 TestUtilities.AssertPropertyContains(debug_, | |
219 page, "LibraryPath", @"foo\lib\win_x86_32_host", true, true); | |
220 TestUtilities.AssertPropertyContains(debug_, page, "LibraryPath", @"foo\ lib", true, true); | |
221 | |
222 dte_.Solution.Close(); | |
223 } | |
224 | |
225 /// <summary> | |
193 /// Test method which verifies that the Pepper platform has correct default properties | 226 /// Test method which verifies that the Pepper platform has correct default properties |
194 /// when initialized from the NaCl platform. And that the NaCl platform has the correct | 227 /// when initialized from the NaCl platform. And that the NaCl platform has the correct |
195 /// settings when initialized from the 'empty' settings. | 228 /// settings when initialized from the 'empty' settings. |
196 /// </summary> | 229 /// </summary> |
197 [TestMethod] | 230 [TestMethod] |
198 public void VerifySettingsNaClInitialization() | 231 public void VerifySettingsNaClInitialization() |
199 { | 232 { |
200 string naclSolutionNaClInitialization = TestUtilities.CreateBlankValidNaCl Solution( | 233 string naclSolutionNaClInitialization = TestUtilities.CreateBlankValidNaCl Solution( |
201 dte_, | 234 dte_, |
202 "ProjectSettingsTestNaClInit", | 235 "ProjectSettingsTestNaClInit", |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
510 debug_, | 543 debug_, |
511 pageName, | 544 pageName, |
512 propertyName); | 545 propertyName); |
513 TestUtilities.AssertPropertyIsNotNullOrEmpty( | 546 TestUtilities.AssertPropertyIsNotNullOrEmpty( |
514 release_, | 547 release_, |
515 pageName, | 548 pageName, |
516 propertyName); | 549 propertyName); |
517 } | 550 } |
518 } | 551 } |
519 } | 552 } |
OLD | NEW |