| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/command_line.h" |
| 6 #include "base/path_service.h" |
| 7 #include "chrome/common/chrome_switches.h" |
| 8 #include "chrome/test/ui/ppapi_uitest.h" |
| 9 |
| 10 static const FilePath::CharType kMockNaClGdb[] = |
| 11 #if defined(OS_WIN) |
| 12 FILE_PATH_LITERAL("mock_nacl_gdb.exe"); |
| 13 #else |
| 14 FILE_PATH_LITERAL("mock_nacl_gdb"); |
| 15 #endif |
| 16 |
| 17 class NaClGdbTest : public PPAPINaClTest { |
| 18 public: |
| 19 NaClGdbTest() { |
| 20 } |
| 21 |
| 22 void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
| 23 PPAPINaClTest::SetUpCommandLine(command_line); |
| 24 |
| 25 FilePath mock_nacl_gdb; |
| 26 EXPECT_TRUE(PathService::Get(base::DIR_EXE, &mock_nacl_gdb)); |
| 27 mock_nacl_gdb = mock_nacl_gdb.Append(kMockNaClGdb); |
| 28 command_line->AppendSwitchPath(switches::kNaClGdb, mock_nacl_gdb); |
| 29 } |
| 30 }; |
| 31 |
| 32 IN_PROC_BROWSER_TEST_F(NaClGdbTest, Empty) { |
| 33 RunTestViaHTTP("Empty"); |
| 34 } |
| OLD | NEW |