| 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.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 Loading... |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |