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

Side by Side Diff: chrome/test/nacl/nacl_browsertest_util.h

Issue 190663012: Run ContentMain in a browser_test's browser process. This removes duplication of code in the browse… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: try to fix android by restoring old path just for it Created 6 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
« no previous file with comments | « chrome/test/base/view_event_test_base.cc ('k') | chrome/test/nacl/nacl_browsertest_util.cc » ('j') | no next file with comments »
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 #ifndef CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ 5 #ifndef CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_
6 #define CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ 6 #define CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 DISALLOW_COPY_AND_ASSIGN(LoadTestMessageHandler); 57 DISALLOW_COPY_AND_ASSIGN(LoadTestMessageHandler);
58 }; 58 };
59 59
60 class NaClBrowserTestBase : public InProcessBrowserTest { 60 class NaClBrowserTestBase : public InProcessBrowserTest {
61 public: 61 public:
62 NaClBrowserTestBase(); 62 NaClBrowserTestBase();
63 virtual ~NaClBrowserTestBase(); 63 virtual ~NaClBrowserTestBase();
64 64
65 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 65 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
66 66
67 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; 67 virtual void SetUpOnMainThread() OVERRIDE;
68 68
69 // What variant are we running - newlib, glibc, pnacl, etc? 69 // What variant are we running - newlib, glibc, pnacl, etc?
70 // This is used to compute what directory we're pulling data from, but it can 70 // This is used to compute what directory we're pulling data from, but it can
71 // also be used to affect the behavior of the test. 71 // also be used to affect the behavior of the test.
72 virtual base::FilePath::StringType Variant() = 0; 72 virtual base::FilePath::StringType Variant() = 0;
73 73
74 // Where are the files for this class of test located on disk? 74 // Where are the files for this class of test located on disk?
75 virtual bool GetDocumentRoot(base::FilePath* document_root); 75 virtual bool GetDocumentRoot(base::FilePath* document_root);
76 76
77 virtual bool IsAPnaclTest(); 77 virtual bool IsAPnaclTest();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ 166 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \
167 body \ 167 body \
168 IN_PROC_BROWSER_TEST_F(suite##GLibc, name) \ 168 IN_PROC_BROWSER_TEST_F(suite##GLibc, name) \
169 body \ 169 body \
170 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ 170 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \
171 body 171 body
172 172
173 #endif 173 #endif
174 174
175 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ 175 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/test/base/view_event_test_base.cc ('k') | chrome/test/nacl/nacl_browsertest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698