| 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 EnvDTE80; | 7 using EnvDTE80; |
| 8 using Microsoft.VisualStudio.TestTools.UnitTesting; | 8 using Microsoft.VisualStudio.TestTools.UnitTesting; |
| 9 using Microsoft.VisualStudio.VCProjectEngine; | 9 using Microsoft.VisualStudio.VCProjectEngine; |
| 10 using NaCl.Build.CPPTasks; | 10 using NaCl.Build.CPPTasks; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 { | 31 { |
| 32 TestUtilities.CleanUpVisualStudioInstance(dte_); | 32 TestUtilities.CleanUpVisualStudioInstance(dte_); |
| 33 } | 33 } |
| 34 | 34 |
| 35 /// <summary> | 35 /// <summary> |
| 36 /// Test method to check that the NaCl platform compiles a test project. | 36 /// Test method to check that the NaCl platform compiles a test project. |
| 37 /// </summary> | 37 /// </summary> |
| 38 [TestMethod] | 38 [TestMethod] |
| 39 public void CheckNaCl64Compile() | 39 public void CheckNaCl64Compile() |
| 40 { | 40 { |
| 41 CheckCompile(Strings.NaCl64PlatformName, false); | 41 CheckCompile(Strings.NaCl64PlatformName); |
| 42 } | 42 } |
| 43 | 43 |
| 44 /// <summary> | 44 /// <summary> |
| 45 /// Test method to check that the NaCl platform compiles a test project. | 45 /// Test method to check that the NaCl platform compiles a test project. |
| 46 /// </summary> | 46 /// </summary> |
| 47 [TestMethod] | 47 [TestMethod] |
| 48 public void CheckNaClARMCompile() | 48 public void CheckNaClARMCompile() |
| 49 { | 49 { |
| 50 string root = System.Environment.GetEnvironmentVariable("NACL_SDK_RO
OT"); | 50 string root = System.Environment.GetEnvironmentVariable("NACL_SDK_RO
OT"); |
| 51 if (!SDKUtilities.SupportsARM(root)) | 51 if (!SDKUtilities.SupportsARM(root)) |
| 52 { | 52 { |
| 53 Assert.Inconclusive(); | 53 Assert.Inconclusive(); |
| 54 } | 54 } |
| 55 CheckCompile(Strings.NaClARMPlatformName, false); | 55 CheckCompile(Strings.NaClARMPlatformName); |
| 56 } | 56 } |
| 57 | 57 |
| 58 /// <summary> | 58 /// <summary> |
| 59 /// Test method to check that the Pepper platform compiles a test projec
t. | 59 /// Test method to check that the Pepper platform compiles a test projec
t. |
| 60 /// </summary> | 60 /// </summary> |
| 61 [TestMethod] | 61 [TestMethod] |
| 62 public void CheckPepperCompile() | 62 public void CheckPepperCompile() |
| 63 { | 63 { |
| 64 CheckCompile(Strings.PepperPlatformName, true); | 64 CheckCompile(Strings.PepperPlatformName); |
| 65 } | 65 } |
| 66 | 66 |
| 67 /// <summary> | 67 /// <summary> |
| 68 /// Test method to check that the NaCl platform compiles a test project. | 68 /// Test method to check that the NaCl platform compiles a test project. |
| 69 /// </summary> | 69 /// </summary> |
| 70 [TestMethod] | 70 [TestMethod] |
| 71 public void CheckPNaClCompile() | 71 public void CheckPNaClCompile() |
| 72 { | 72 { |
| 73 string root = System.Environment.GetEnvironmentVariable("NACL_SDK_RO
OT"); | 73 string root = System.Environment.GetEnvironmentVariable("NACL_SDK_RO
OT"); |
| 74 if (!SDKUtilities.SupportsPNaCl(root)) | 74 if (!SDKUtilities.SupportsPNaCl(root)) |
| 75 { | 75 { |
| 76 Assert.Inconclusive(); | 76 Assert.Inconclusive(); |
| 77 } | 77 } |
| 78 CheckCompile(Strings.PNaClPlatformName, false); | 78 CheckCompile(Strings.PNaClPlatformName); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } | 81 } |
| 82 } | 82 } |
| OLD | NEW |