Chromium Code Reviews| 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 #if defined(OS_WIN) | |
| 11 static const FilePath::CharType kMockNaClGdb[] = | |
|
Mark Seaborn
2012/03/13 01:05:20
You could move this line outside of the #if.
halyavin
2012/03/13 12:48:27
Done.
| |
| 12 FILE_PATH_LITERAL("mock_nacl_gdb.exe"); | |
| 13 #else | |
| 14 static const FilePath::CharType kMockNaClGdb[] = | |
| 15 FILE_PATH_LITERAL("mock_nacl_gdb"); | |
| 16 #endif | |
| 17 | |
| 18 class NaClGdbTest : public PPAPINaClTest { | |
| 19 public: | |
| 20 NaClGdbTest() { | |
| 21 } | |
| 22 | |
| 23 void SetUpCommandLine(CommandLine* command_line) OVERRIDE { | |
| 24 PPAPINaClTest::SetUpCommandLine(command_line); | |
| 25 | |
| 26 command_line->AppendSwitch(switches::kNoSandbox); | |
|
Mark Seaborn
2012/03/13 01:05:20
I thought this gets added automatically when using
halyavin
2012/03/13 12:48:27
Sorry, I knew that this should be removed but forg
| |
| 27 FilePath mock_nacl_gdb; | |
| 28 EXPECT_TRUE(PathService::Get(base::DIR_EXE, &mock_nacl_gdb)); | |
| 29 mock_nacl_gdb = mock_nacl_gdb.Append(kMockNaClGdb); | |
| 30 command_line->AppendSwitchPath(switches::kNaClGdb, mock_nacl_gdb); | |
|
Mark Seaborn
2012/03/13 01:05:20
What happens if Chromium ignores the --nacl-gdb ar
Mark Seaborn
2012/03/13 17:06:27
Andrey, you didn't answer this question. This is
| |
| 31 } | |
| 32 }; | |
| 33 | |
| 34 IN_PROC_BROWSER_TEST_F(NaClGdbTest, Empty) { | |
| 35 RunTestViaHTTP("Empty"); | |
| 36 } | |
| OLD | NEW |