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 using System; | 4 using System; |
5 using System.Text; | 5 using System.Text; |
6 using System.Collections.Generic; | 6 using System.Collections.Generic; |
7 using EnvDTE; | |
8 using EnvDTE80; | 7 using EnvDTE80; |
9 using Microsoft.VisualStudio.TestTools.UnitTesting; | 8 using Microsoft.VisualStudio.TestTools.UnitTesting; |
10 using Microsoft.VisualStudio.VCProjectEngine; | 9 using Microsoft.VisualStudio.VCProjectEngine; |
11 using NaCl.Build.CPPTasks; | 10 using NaCl.Build.CPPTasks; |
12 using NativeClientVSAddIn; | 11 using NativeClientVSAddIn; |
13 | 12 |
14 namespace UnitTests | 13 namespace UnitTests |
15 { | 14 { |
16 [TestClass] | 15 [TestClass] |
17 public class ComileTest : BaseCompileTest | 16 public class ComileTest : BaseCompileTest |
18 { | 17 { |
19 private static string SolutionBaseName_ = "CompileTest"; | 18 private static string SolutionBaseName_ = "CompileTest"; |
20 | 19 |
21 [ClassInitialize] | 20 [ClassInitialize] |
22 public new static void ClassSetUp(TestContext testContext) | 21 public static void ClassSetUp(TestContext testContext) |
23 { | 22 { |
24 BaseCompileTest.ClassSetUp(testContext, SolutionBaseName_); | 23 BaseCompileTest.ClassSetUp(testContext, SolutionBaseName_); |
25 } | 24 } |
26 | 25 |
27 /// <summary> | 26 /// <summary> |
28 /// This is run after each test to clean up things created in TestSetup(
). | 27 /// This is run after each test to clean up things created in TestSetup(
). |
29 /// </summary> | 28 /// </summary> |
30 [TestCleanup] | 29 [TestCleanup] |
31 public void ClassTearDown() | 30 public void ClassTearDown() |
32 { | 31 { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 string root = System.Environment.GetEnvironmentVariable("NACL_SDK_RO
OT"); | 73 string root = System.Environment.GetEnvironmentVariable("NACL_SDK_RO
OT"); |
75 if (!SDKUtilities.SupportsPNaCl(root)) | 74 if (!SDKUtilities.SupportsPNaCl(root)) |
76 { | 75 { |
77 Assert.Inconclusive(); | 76 Assert.Inconclusive(); |
78 } | 77 } |
79 CheckCompile(Strings.PNaClPlatformName, false); | 78 CheckCompile(Strings.PNaClPlatformName, false); |
80 } | 79 } |
81 | 80 |
82 } | 81 } |
83 } | 82 } |
OLD | NEW |