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

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

Issue 573823002: [VS Addin] Fix several issues with debugging PPAPI plugins (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 6 years, 3 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/Strings.Designer.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.IO; 8 using System.IO;
9 9
10 using EnvDTE; 10 using EnvDTE;
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 // Debugging 301 // Debugging
302 page = "WindowsLocalDebugger"; 302 page = "WindowsLocalDebugger";
303 string chromePath = System.Environment.GetEnvironmentVariable( 303 string chromePath = System.Environment.GetEnvironmentVariable(
304 Strings.ChromePathEnvironmentVariable); 304 Strings.ChromePathEnvironmentVariable);
305 AllConfigsAssertPropertyEquals( 305 AllConfigsAssertPropertyEquals(
306 page, "LocalDebuggerCommand", chromePath, true); 306 page, "LocalDebuggerCommand", chromePath, true);
307 307
308 string propName = "LocalDebuggerCommandArguments"; 308 string propName = "LocalDebuggerCommandArguments";
309 string dataDir = "--user-data-dir=\"$(ProjectDir)/chrome_data\""; 309 string dataDir = "--user-data-dir=\"$(ProjectDir)/chrome_data\"";
310 string address = "localhost:$(NaClWebServerPort)"; 310 string address = "http://localhost:$(NaClWebServerPort)";
311 string targetFlag = "--register-pepper-plugins=\"$(TargetPath)\";applicati on/x-nacl"; 311 string targetFlag = "--register-pepper-plugins=\"$(TargetPath)\";applicati on/x-ppapi";
312 string debugChildrenFlag = "--wait-for-debugger-children"; 312 string debugChildrenFlag = "--wait-for-debugger-children";
313 AllConfigsAssertPropertyContains(page, propName, dataDir, true); 313 AllConfigsAssertPropertyContains(page, propName, dataDir, true);
314 AllConfigsAssertPropertyContains(page, propName, address, true); 314 AllConfigsAssertPropertyContains(page, propName, address, true);
315 AllConfigsAssertPropertyContains(page, propName, targetFlag, true); 315 AllConfigsAssertPropertyContains(page, propName, targetFlag, true);
316 TestUtilities.AssertPropertyContains(debug_, page, propName, debugChildren Flag, true); 316 TestUtilities.AssertPropertyContains(debug_, page, propName, debugChildren Flag, true);
317 317
318 // VC++ Directories 318 // VC++ Directories
319 page = "ConfigurationDirectories"; 319 page = "ConfigurationDirectories";
320 AllConfigsAssertPropertyContains(page, "IncludePath", @"$(VSNaClSDKRoot)in clude;", true); 320 AllConfigsAssertPropertyContains(page, "IncludePath", @"$(VSNaClSDKRoot)in clude;", true);
321 AllConfigsAssertPropertyContains(page, "IncludePath", @"$(VSNaClSDKRoot)in clude\win;", true); 321 AllConfigsAssertPropertyContains(page, "IncludePath", @"$(VSNaClSDKRoot)in clude\win;", true);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 // Debugging 386 // Debugging
387 page = "WindowsLocalDebugger"; 387 page = "WindowsLocalDebugger";
388 string chromePath = System.Environment.GetEnvironmentVariable( 388 string chromePath = System.Environment.GetEnvironmentVariable(
389 Strings.ChromePathEnvironmentVariable); 389 Strings.ChromePathEnvironmentVariable);
390 AllConfigsAssertPropertyEquals( 390 AllConfigsAssertPropertyEquals(
391 page, "LocalDebuggerCommand", chromePath, true); 391 page, "LocalDebuggerCommand", chromePath, true);
392 392
393 string propName = "LocalDebuggerCommandArguments"; 393 string propName = "LocalDebuggerCommandArguments";
394 string dataDir = "--user-data-dir=\"$(ProjectDir)/chrome_data\""; 394 string dataDir = "--user-data-dir=\"$(ProjectDir)/chrome_data\"";
395 string address = "localhost:$(NaClWebServerPort)"; 395 string address = "http://localhost:$(NaClWebServerPort)";
396 string naclFlag = "--enable-nacl"; 396 string naclFlag = "--enable-nacl";
397 string naclDebugFlag = "--enable-nacl-debug"; 397 string naclDebugFlag = "--enable-nacl-debug";
398 string noSandBoxFlag = "--no-sandbox"; 398 string noSandBoxFlag = "--no-sandbox";
399 TestUtilities.AssertPropertyContains(debug_, page, propName, dataDir, true ); 399 TestUtilities.AssertPropertyContains(debug_, page, propName, dataDir, true );
400 TestUtilities.AssertPropertyContains(debug_, page, propName, address, true ); 400 TestUtilities.AssertPropertyContains(debug_, page, propName, address, true );
401 TestUtilities.AssertPropertyContains(debug_, page, propName, naclFlag, tru e); 401 TestUtilities.AssertPropertyContains(debug_, page, propName, naclFlag, tru e);
402 TestUtilities.AssertPropertyContains(debug_, page, propName, naclDebugFlag , true); 402 TestUtilities.AssertPropertyContains(debug_, page, propName, naclDebugFlag , true);
403 TestUtilities.AssertPropertyContains(debug_, page, propName, noSandBoxFlag , true); 403 TestUtilities.AssertPropertyContains(debug_, page, propName, noSandBoxFlag , true);
404 TestUtilities.AssertPropertyContains(release_, page, propName, dataDir, tr ue); 404 TestUtilities.AssertPropertyContains(release_, page, propName, dataDir, tr ue);
405 TestUtilities.AssertPropertyContains(release_, page, propName, address, tr ue); 405 TestUtilities.AssertPropertyContains(release_, page, propName, address, tr ue);
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 debug_, 531 debug_,
532 pageName, 532 pageName,
533 propertyName); 533 propertyName);
534 TestUtilities.AssertPropertyIsNotNullOrEmpty( 534 TestUtilities.AssertPropertyIsNotNullOrEmpty(
535 release_, 535 release_,
536 pageName, 536 pageName,
537 propertyName); 537 propertyName);
538 } 538 }
539 } 539 }
540 } 540 }
OLDNEW
« no previous file with comments | « visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Strings.Designer.cs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698