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

Unified Diff: visual_studio/NativeClientVSAddIn/UnitTests/ProjectSettingsTest.cs

Issue 11225037: [NaCl SDK] move VSNaClSDKRoot into ConfigurationGeneral section (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: visual_studio/NativeClientVSAddIn/UnitTests/ProjectSettingsTest.cs
diff --git a/visual_studio/NativeClientVSAddIn/UnitTests/ProjectSettingsTest.cs b/visual_studio/NativeClientVSAddIn/UnitTests/ProjectSettingsTest.cs
index 44a482085e3b6434086f620e45df409d3a0e9c08..23af800fc87072d8e3cd522f8d05fa9e1687cfa5 100644
--- a/visual_studio/NativeClientVSAddIn/UnitTests/ProjectSettingsTest.cs
+++ b/visual_studio/NativeClientVSAddIn/UnitTests/ProjectSettingsTest.cs
@@ -190,6 +190,39 @@ namespace UnitTests
}
/// <summary>
+ /// Test that setting a custom NaClSDKRoot correctly effects the default values for
+ /// things like IncludePath. This test is needed to protect against regressions where
+ /// the order of the properties could cause NaClSDKRoot to not effect the defaults.
+ /// </summary>
+ [TestMethod]
+ public void OverrideSDKRoot()
+ {
+ string slnName = TestUtilities.CreateBlankValidNaClSolution(
+ dte_,
+ "OverrideSDKRoot",
+ NativeClientVSAddIn.Strings.PepperPlatformName,
+ NativeClientVSAddIn.Strings.PepperPlatformName,
+ TestContext);
+
+ OpenSolutionAndGetProperties(slnName, NativeClientVSAddIn.Strings.PepperPlatformName);
+
+ // VC++ Directories
+ string page = "ConfigurationGeneral";
+ IVCRulePropertyStorage pageStorage = debug_.Rules.Item(page);
+ pageStorage.SetPropertyValue("VSNaClSDKRoot", @"foo\");
+
+ page = "ConfigurationDirectories";
+ TestUtilities.AssertPropertyContains(debug_, page, "IncludePath", @"foo\include;", true, true);
binji 2012/10/23 00:59:32 nit: wrap all of these at 100 chars
+ TestUtilities.AssertPropertyContains(debug_, page, "IncludePath", @"foo\include\win;", true, true);
+ TestUtilities.AssertPropertyContains(debug_, page, "IncludePath", @"foo\include", true, true);
+ TestUtilities.AssertPropertyContains(debug_,
+ page, "LibraryPath", @"foo\lib\win_x86_32_host", true, true);
+ TestUtilities.AssertPropertyContains(debug_, page, "LibraryPath", @"foo\lib", true, true);
+
+ dte_.Solution.Close();
+ }
+
+ /// <summary>
/// Test method which verifies that the Pepper platform has correct default properties
/// when initialized from the NaCl platform. And that the NaCl platform has the correct
/// settings when initialized from the 'empty' settings.

Powered by Google App Engine
This is Rietveld 408576698