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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |