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

Side by Side Diff: visual_studio/NativeClientVSAddIn/UnitTests/PluginDebuggerGDBTest.cs

Issue 10823267: NaCl VS Addin Crash Fix (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PropertyManager.cs ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PropertyManager.cs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698