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

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

Issue 11266051: Add PNaCl support for VS addin. (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: fix nits and tests Created 8 years, 1 month 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
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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 { 388 {
389 PluginDebuggerGDB_Accessor target = new PluginDebuggerGDB_Accessor(dte_, p roperties_); 389 PluginDebuggerGDB_Accessor target = new PluginDebuggerGDB_Accessor(dte_, p roperties_);
390 390
391 ProcessInfo badProc = new ProcessInfo( 391 ProcessInfo badProc = new ProcessInfo(
392 1, 1, string.Empty, Strings.ChromeRendererFlag, Strings.NaClProcessNam e); 392 1, 1, string.Empty, Strings.ChromeRendererFlag, Strings.NaClProcessNam e);
393 ProcessInfo goodProc = new ProcessInfo( 393 ProcessInfo goodProc = new ProcessInfo(
394 1, 1, string.Empty, Strings.NaClLoaderFlag, Strings.NaClProcessName); 394 1, 1, string.Empty, Strings.NaClLoaderFlag, Strings.NaClProcessName);
395 395
396 string goodMainChromeFlags = Strings.NaClDebugFlag; 396 string goodMainChromeFlags = Strings.NaClDebugFlag;
397 string badMainChromeFlags = string.Format( 397 string badMainChromeFlags = string.Format(
398 Strings.PepperProcessPluginFlagFormat, target.pluginAssembly_); 398 Strings.PepperProcessPluginFlagFormat, target.targetNexe_);
399 399
400 Assert.IsTrue(target.IsPluginProcess(goodProc, goodMainChromeFlags)); 400 Assert.IsTrue(target.IsPluginProcess(goodProc, goodMainChromeFlags));
401 Assert.IsFalse(target.IsPluginProcess(goodProc, badMainChromeFlags)); 401 Assert.IsFalse(target.IsPluginProcess(goodProc, badMainChromeFlags));
402 Assert.IsFalse(target.IsPluginProcess(badProc, goodMainChromeFlags)); 402 Assert.IsFalse(target.IsPluginProcess(badProc, goodMainChromeFlags));
403 } 403 }
404 } 404 }
405 } 405 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698