Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: chrome/browser/nacl_host/test/nacl_gdb_browsertest.cc

Issue 9662055: Test for --nacl-gdb functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698