| 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_util.h" | 8 #include "base/process_util.h" |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "chrome/browser/nacl_host/nacl_browser.h" | 10 #include "chrome/browser/nacl_host/nacl_browser.h" |
| 11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/test/ppapi/ppapi_test.h" | 12 #include "chrome/test/ppapi/ppapi_test.h" |
| 13 #include "content/public/test/test_utils.h" | 13 #include "content/public/test/test_utils.h" |
| 14 | 14 |
| 15 class NaClGdbDebugStubTest : public PPAPINaClNewlibTest { | 15 class NaClGdbDebugStubTest : public PPAPINaClNewlibTest { |
| 16 public: | 16 public: |
| 17 NaClGdbDebugStubTest() { | 17 NaClGdbDebugStubTest() { |
| 18 } | 18 } |
| 19 | 19 |
| 20 void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 20 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
| 21 | 21 |
| 22 void StartTestScript(base::ProcessHandle* test_process, | 22 void StartTestScript(base::ProcessHandle* test_process, |
| 23 std::string test_name, int debug_stub_port); | 23 std::string test_name, int debug_stub_port); |
| 24 void RunDebugStubTest(const std::string& nacl_module, | 24 void RunDebugStubTest(const std::string& nacl_module, |
| 25 const std::string& test_name); | 25 const std::string& test_name); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 void NaClGdbDebugStubTest::SetUpCommandLine(CommandLine* command_line) { | 28 void NaClGdbDebugStubTest::SetUpCommandLine(CommandLine* command_line) { |
| 29 PPAPINaClNewlibTest::SetUpCommandLine(command_line); | 29 PPAPINaClNewlibTest::SetUpCommandLine(command_line); |
| 30 command_line->AppendSwitch(switches::kEnableNaClDebug); | 30 command_line->AppendSwitch(switches::kEnableNaClDebug); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 # define MAYBE_Breakpoint Breakpoint | 72 # define MAYBE_Breakpoint Breakpoint |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 IN_PROC_BROWSER_TEST_F(NaClGdbDebugStubTest, MAYBE_Empty) { | 75 IN_PROC_BROWSER_TEST_F(NaClGdbDebugStubTest, MAYBE_Empty) { |
| 76 RunDebugStubTest("Empty", "continue"); | 76 RunDebugStubTest("Empty", "continue"); |
| 77 } | 77 } |
| 78 | 78 |
| 79 IN_PROC_BROWSER_TEST_F(NaClGdbDebugStubTest, MAYBE_Breakpoint) { | 79 IN_PROC_BROWSER_TEST_F(NaClGdbDebugStubTest, MAYBE_Breakpoint) { |
| 80 RunDebugStubTest("Empty", "breakpoint"); | 80 RunDebugStubTest("Empty", "breakpoint"); |
| 81 } | 81 } |
| OLD | NEW |