| 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 using System.Collections.Generic; | 8 using System.Collections.Generic; |
| 9 using System.IO; | 9 using System.IO; |
| 10 using System.Reflection; | 10 using System.Reflection; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 { | 94 { |
| 95 switch (page) | 95 switch (page) |
| 96 { | 96 { |
| 97 case "ConfigurationGeneral": | 97 case "ConfigurationGeneral": |
| 98 switch (name) | 98 switch (name) |
| 99 { | 99 { |
| 100 case "VSNaClSDKRoot": return System.Environment.GetEnvironmentVa
riable( | 100 case "VSNaClSDKRoot": return System.Environment.GetEnvironmentVa
riable( |
| 101 NativeClientVSAddIn.Strings.SDKPathEnvironmentVariable); | 101 NativeClientVSAddIn.Strings.SDKPathEnvironmentVariable); |
| 102 case "NaClIrtPath": return @"fake\Irt\Path"; | 102 case "NaClIrtPath": return @"fake\Irt\Path"; |
| 103 case "NaClManifestPath": return string.Empty; | 103 case "NaClManifestPath": return string.Empty; |
| 104 case "PlatformToolset": return "win_x86_newlib"; | 104 case "ToolchainName": return "newlib"; |
| 105 } | 105 } |
| 106 | 106 |
| 107 break; | 107 break; |
| 108 case "Property": | 108 case "Property": |
| 109 switch (name) | 109 switch (name) |
| 110 { | 110 { |
| 111 case "ProjectDirectory": return TestContext.DeploymentDirectory; | 111 case "ProjectDirectory": return TestContext.DeploymentDirectory; |
| 112 case "PluginAssembly": return @"fake\Assembly\String"; | 112 case "PluginAssembly": return @"fake\Assembly\String"; |
| 113 } | 113 } |
| 114 | 114 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 string goodMainChromeFlags = Strings.NaClDebugFlag; | 389 string goodMainChromeFlags = Strings.NaClDebugFlag; |
| 390 string badMainChromeFlags = string.Format( | 390 string badMainChromeFlags = string.Format( |
| 391 Strings.PepperProcessPluginFlagFormat, target.pluginAssembly_); | 391 Strings.PepperProcessPluginFlagFormat, target.pluginAssembly_); |
| 392 | 392 |
| 393 Assert.IsTrue(target.IsPluginProcess(goodProc, goodMainChromeFlags)); | 393 Assert.IsTrue(target.IsPluginProcess(goodProc, goodMainChromeFlags)); |
| 394 Assert.IsFalse(target.IsPluginProcess(goodProc, badMainChromeFlags)); | 394 Assert.IsFalse(target.IsPluginProcess(goodProc, badMainChromeFlags)); |
| 395 Assert.IsFalse(target.IsPluginProcess(badProc, goodMainChromeFlags)); | 395 Assert.IsFalse(target.IsPluginProcess(badProc, goodMainChromeFlags)); |
| 396 } | 396 } |
| 397 } | 397 } |
| 398 } | 398 } |
| OLD | NEW |