| 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 #include "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/environment.h" | 6 #include "base/environment.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/process/kill.h" | 8 #include "base/process/kill.h" |
| 9 #include "base/process/launch.h" | 9 #include "base/process/launch.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
| 12 #include "chrome/test/ppapi/ppapi_test.h" | 12 #include "chrome/test/ppapi/ppapi_test.h" |
| 13 #include "components/nacl/browser/nacl_browser.h" | 13 #include "components/nacl/browser/nacl_browser.h" |
| 14 #include "components/nacl/common/nacl_switches.h" | 14 #include "components/nacl/common/nacl_switches.h" |
| 15 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
| 16 | 16 |
| 17 class NaClGdbDebugStubTest : public PPAPINaClNewlibTest { | 17 class NaClGdbDebugStubTest : public PPAPINaClNewlibTest { |
| 18 public: | 18 public: |
| 19 NaClGdbDebugStubTest() { | 19 NaClGdbDebugStubTest() { |
| 20 } | 20 } |
| 21 | 21 |
| 22 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 22 virtual void SetUpCommandLine(CommandLine* command_line) override; |
| 23 | 23 |
| 24 void StartTestScript(base::ProcessHandle* test_process, | 24 void StartTestScript(base::ProcessHandle* test_process, |
| 25 std::string test_name, int debug_stub_port); | 25 std::string test_name, int debug_stub_port); |
| 26 void RunDebugStubTest(const std::string& nacl_module, | 26 void RunDebugStubTest(const std::string& nacl_module, |
| 27 const std::string& test_name); | 27 const std::string& test_name); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 void NaClGdbDebugStubTest::SetUpCommandLine(CommandLine* command_line) { | 30 void NaClGdbDebugStubTest::SetUpCommandLine(CommandLine* command_line) { |
| 31 PPAPINaClNewlibTest::SetUpCommandLine(command_line); | 31 PPAPINaClNewlibTest::SetUpCommandLine(command_line); |
| 32 command_line->AppendSwitch(switches::kEnableNaClDebug); | 32 command_line->AppendSwitch(switches::kEnableNaClDebug); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY) | 80 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY) |
| 81 // Timing out on ARM linux: http://crbug.com/238469 | 81 // Timing out on ARM linux: http://crbug.com/238469 |
| 82 # define MAYBE_Breakpoint DISABLED_Breakpoint | 82 # define MAYBE_Breakpoint DISABLED_Breakpoint |
| 83 #else | 83 #else |
| 84 # define MAYBE_Breakpoint Breakpoint | 84 # define MAYBE_Breakpoint Breakpoint |
| 85 #endif | 85 #endif |
| 86 | 86 |
| 87 IN_PROC_BROWSER_TEST_F(NaClGdbDebugStubTest, MAYBE_Breakpoint) { | 87 IN_PROC_BROWSER_TEST_F(NaClGdbDebugStubTest, MAYBE_Breakpoint) { |
| 88 RunDebugStubTest("Empty", "breakpoint"); | 88 RunDebugStubTest("Empty", "breakpoint"); |
| 89 } | 89 } |
| OLD | NEW |