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

Unified Diff: experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/SignOff-Tests/CPPProjectTests.cs

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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: experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/SignOff-Tests/CPPProjectTests.cs
diff --git a/experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/SignOff-Tests/CPPProjectTests.cs b/experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/SignOff-Tests/CPPProjectTests.cs
deleted file mode 100644
index e8262ee35f5adf4918cc9fa3d0bde5bb4647064c..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/src/NaClVsx.Package/NaClVsx.Package_IntegrationTestProject/SignOff-Tests/CPPProjectTests.cs
+++ /dev/null
@@ -1,157 +0,0 @@
-/*
- * Copyright 2009 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can
- * be found in the LICENSE file.
- */
-using System;
-using System.IO;
-using EnvDTE;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using Microsoft.VsSDK.IntegrationTestLibrary;
-using Microsoft.VSSDK.Tools.VsIdeTesting;
-
-namespace IntegrationTests {
- [TestClass]
- public class CPPProjectTests {
- #region fields
-
- private delegate void ThreadInvoker();
-
- #endregion
-
- #region properties
-
- /// <summary>
- ///Gets or sets the test context which provides
- ///information about and functionality for the current test run.
- ///</summary>
- public TestContext TestContext { get; set; }
-
- #endregion
-
- #region ctors
-
- #endregion
-
- #region Additional test attributes
-
- //
- // You can use the following additional attributes as you write your tests:
- //
- // Use ClassInitialize to run code before running the first test in the class
- // [ClassInitialize()]
- // public static void MyClassInitialize(TestContext testContext) { }
- //
- // Use ClassCleanup to run code after all tests in a class have run
- // [ClassCleanup()]
- // public static void MyClassCleanup() { }
- //
- // Use TestInitialize to run code before running each test
- // [TestInitialize()]
- // public void MyTestInitialize() { }
- //
- // Use TestCleanup to run code after each test has run
- // [TestCleanup()]
- // public void MyTestCleanup() { }
- //
-
- #endregion
-
- [TestMethod]
- public void CPPWinformsApplication() {
- UIThreadInvoker.Invoke((ThreadInvoker) delegate {
- //Solution and project creation parameters
- string solutionName =
- "CreateCPPWinformsApplication";
- string projectName =
- "CPPWindowsApp";
-
- //Template parameters
- string projectType =
- "{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}";
- string projectTemplateName =
- "mc++winapp.vsz";
-
- string itemTemplateName =
- "newc++file.cpp";
- string newFileName = "Test.cpp";
-
- var dte =
- (DTE)
- VsIdeTestHostContext.
- ServiceProvider.
- GetService(typeof (DTE));
-
- var testUtils = new TestUtils();
-
- testUtils.CreateEmptySolution(
- TestContext.TestDir,
- solutionName);
- Assert.AreEqual(0,
- testUtils.
- ProjectCount());
-
- //Add new CPP Windows application project to existing solution
- string solutionDirectory =
- Directory.GetParent(
- dte.Solution.FullName).
- FullName;
- string projectDirectory =
- TestUtils.GetNewDirectoryName
- (solutionDirectory,
- projectName);
- string projectTemplatePath =
- Path.Combine(
- dte.Solution.
- get_TemplatePath(
- projectType),
- projectTemplateName);
- Assert.IsTrue(
- File.Exists(
- projectTemplatePath),
- string.Format(
- "Could not find template file: {0}",
- projectTemplatePath));
- dte.Solution.AddFromTemplate(
- projectTemplatePath,
- projectDirectory,
- projectName,
- false);
-
- //Verify that the new project has been added to the solution
- Assert.AreEqual(1,
- testUtils.
- ProjectCount());
-
- //Get the project
- Project project =
- dte.Solution.Item(1);
- Assert.IsNotNull(project);
- Assert.IsTrue(
- string.Compare(project.Name,
- projectName,
- StringComparison
- .
- InvariantCultureIgnoreCase) ==
- 0);
-
- //Verify Adding new code file to project
- string newItemTemplatePath =
- Path.Combine(
- dte.Solution.
- ProjectItemsTemplatePath
- (projectType),
- itemTemplateName);
- Assert.IsTrue(
- File.Exists(
- newItemTemplatePath));
- ProjectItem item =
- project.ProjectItems.
- AddFromTemplate(
- newItemTemplatePath,
- newFileName);
- Assert.IsNotNull(item);
- });
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698