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

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

Issue 10409032: Enable PPAPINaCl GLIBC browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | chrome/test/ui/ppapi_uitest.h » ('j') | native_client_sdk/src/tools/create_nmf.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/win/windows_version.h" 9 #include "base/win/windows_version.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/test/ui/ppapi_uitest.h" 11 #include "chrome/test/ui/ppapi_uitest.h"
12 12
13 static const FilePath::CharType kMockNaClGdb[] = 13 static const FilePath::CharType kMockNaClGdb[] =
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 FILE_PATH_LITERAL("mock_nacl_gdb.exe"); 15 FILE_PATH_LITERAL("mock_nacl_gdb.exe");
16 #else 16 #else
17 FILE_PATH_LITERAL("mock_nacl_gdb"); 17 FILE_PATH_LITERAL("mock_nacl_gdb");
18 #endif 18 #endif
19 19
20 class NaClGdbTest : public PPAPINaClTest { 20 class NaClGdbTest : public PPAPINaClNewlibTest {
21 public: 21 public:
22 NaClGdbTest() { 22 NaClGdbTest() {
23 } 23 }
24 24
25 void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 25 void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
26 PPAPINaClTest::SetUpCommandLine(command_line); 26 PPAPINaClNewlibTest::SetUpCommandLine(command_line);
27 27
28 FilePath mock_nacl_gdb; 28 FilePath mock_nacl_gdb;
29 EXPECT_TRUE(PathService::Get(base::DIR_EXE, &mock_nacl_gdb)); 29 EXPECT_TRUE(PathService::Get(base::DIR_EXE, &mock_nacl_gdb));
30 mock_nacl_gdb = mock_nacl_gdb.Append(kMockNaClGdb); 30 mock_nacl_gdb = mock_nacl_gdb.Append(kMockNaClGdb);
31 command_line->AppendSwitchPath(switches::kNaClGdb, mock_nacl_gdb); 31 command_line->AppendSwitchPath(switches::kNaClGdb, mock_nacl_gdb);
32 } 32 }
33 }; 33 };
34 34
35 // Fails on the ASAN test bot. See http://crbug.com/122219 35 // Fails on the ASAN test bot. See http://crbug.com/122219
36 #if defined(ADDRESS_SANITIZER) 36 #if defined(ADDRESS_SANITIZER)
(...skipping 18 matching lines...) Expand all
55 } 55 }
56 #endif 56 #endif
57 EXPECT_TRUE(file_util::CreateTemporaryFile(&mock_nacl_gdb_file)); 57 EXPECT_TRUE(file_util::CreateTemporaryFile(&mock_nacl_gdb_file));
58 env->SetVar("MOCK_NACL_GDB", mock_nacl_gdb_file.AsUTF8Unsafe()); 58 env->SetVar("MOCK_NACL_GDB", mock_nacl_gdb_file.AsUTF8Unsafe());
59 RunTestViaHTTP("Empty"); 59 RunTestViaHTTP("Empty");
60 env->UnSetVar("MOCK_NACL_GDB"); 60 env->UnSetVar("MOCK_NACL_GDB");
61 EXPECT_TRUE(file_util::ReadFileToString(mock_nacl_gdb_file, &content)); 61 EXPECT_TRUE(file_util::ReadFileToString(mock_nacl_gdb_file, &content));
62 EXPECT_STREQ("PASS", content.c_str()); 62 EXPECT_STREQ("PASS", content.c_str());
63 EXPECT_TRUE(file_util::Delete(mock_nacl_gdb_file, false)); 63 EXPECT_TRUE(file_util::Delete(mock_nacl_gdb_file, false));
64 } 64 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/ui/ppapi_uitest.h » ('j') | native_client_sdk/src/tools/create_nmf.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698